@seliseblocks/genesis-os 4.0.5 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{chunk-CC33UJZK.js → chunk-6RCHFJ4C.js} +18 -3
  3. package/dist/chunk-6RCHFJ4C.js.map +1 -0
  4. package/dist/{chunk-WSQLZKTO.js → chunk-DZ3IMLS3.js} +464 -39
  5. package/dist/chunk-DZ3IMLS3.js.map +1 -0
  6. package/dist/{chunk-AL2E2WC4.cjs → chunk-JTSGZMKE.cjs} +19 -2
  7. package/dist/chunk-JTSGZMKE.cjs.map +1 -0
  8. package/dist/{chunk-2QDH2N7Z.js → chunk-LQRMDLQK.js} +37 -20
  9. package/dist/chunk-LQRMDLQK.js.map +1 -0
  10. package/dist/{chunk-UBF3PJTH.cjs → chunk-MSHCIIXL.cjs} +57 -2
  11. package/dist/chunk-MSHCIIXL.cjs.map +1 -0
  12. package/dist/{chunk-MXZIA4LA.cjs → chunk-OSFMZAMZ.cjs} +36 -19
  13. package/dist/chunk-OSFMZAMZ.cjs.map +1 -0
  14. package/dist/{chunk-GHNQN27G.cjs → chunk-SXQBODHS.cjs} +505 -70
  15. package/dist/chunk-SXQBODHS.cjs.map +1 -0
  16. package/dist/{chunk-GUT2OEFQ.js → chunk-WKZJV3E7.js} +57 -3
  17. package/dist/chunk-WKZJV3E7.js.map +1 -0
  18. package/dist/components/index.cjs +381 -341
  19. package/dist/components/index.d.cts +92 -1
  20. package/dist/components/index.d.ts +92 -1
  21. package/dist/components/index.js +4 -4
  22. package/dist/guards/index.cjs +7 -7
  23. package/dist/guards/index.js +1 -1
  24. package/dist/hooks/index.cjs +43 -39
  25. package/dist/hooks/index.d.cts +1 -0
  26. package/dist/hooks/index.d.ts +1 -0
  27. package/dist/hooks/index.js +1 -1
  28. package/dist/index.cjs +445 -401
  29. package/dist/index.d.cts +2 -1
  30. package/dist/index.d.ts +2 -1
  31. package/dist/index.js +4 -4
  32. package/dist/layouts/index.cjs +11 -11
  33. package/dist/layouts/index.js +4 -4
  34. package/dist/pages/index.cjs +9 -9
  35. package/dist/pages/index.js +4 -4
  36. package/dist/providers/index.cjs +5 -5
  37. package/dist/providers/index.js +1 -1
  38. package/dist/use-keyboard-shortcut-BJCssC78.d.cts +17 -0
  39. package/dist/use-keyboard-shortcut-BJCssC78.d.ts +17 -0
  40. package/package.json +2 -2
  41. package/dist/chunk-2QDH2N7Z.js.map +0 -1
  42. package/dist/chunk-AL2E2WC4.cjs.map +0 -1
  43. package/dist/chunk-CC33UJZK.js.map +0 -1
  44. package/dist/chunk-GHNQN27G.cjs.map +0 -1
  45. package/dist/chunk-GUT2OEFQ.js.map +0 -1
  46. package/dist/chunk-MXZIA4LA.cjs.map +0 -1
  47. package/dist/chunk-UBF3PJTH.cjs.map +0 -1
  48. package/dist/chunk-WSQLZKTO.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkXJ6DPUCV_cjs = require('./chunk-XJ6DPUCV.cjs');
4
- var chunkUBF3PJTH_cjs = require('./chunk-UBF3PJTH.cjs');
4
+ var chunkMSHCIIXL_cjs = require('./chunk-MSHCIIXL.cjs');
5
5
  var chunkZ6N3Y5AQ_cjs = require('./chunk-Z6N3Y5AQ.cjs');
6
- var chunkAL2E2WC4_cjs = require('./chunk-AL2E2WC4.cjs');
6
+ var chunkJTSGZMKE_cjs = require('./chunk-JTSGZMKE.cjs');
7
7
  var chunkQ7Y32IBM_cjs = require('./chunk-Q7Y32IBM.cjs');
8
- var chunkMXZIA4LA_cjs = require('./chunk-MXZIA4LA.cjs');
8
+ var chunkOSFMZAMZ_cjs = require('./chunk-OSFMZAMZ.cjs');
9
9
  var chunkPSATBGVF_cjs = require('./chunk-PSATBGVF.cjs');
10
10
  var chunkHF24SZFI_cjs = require('./chunk-HF24SZFI.cjs');
11
11
  var chunkSDWR3F3Y_cjs = require('./chunk-SDWR3F3Y.cjs');
@@ -1140,6 +1140,436 @@ 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;
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));
1151
+ }
1152
+ function parsePx(value) {
1153
+ if (typeof window === "undefined") return 0;
1154
+ const probe = document.createElement("div");
1155
+ probe.style.position = "absolute";
1156
+ probe.style.visibility = "hidden";
1157
+ probe.style.width = value;
1158
+ document.body.appendChild(probe);
1159
+ const px = probe.getBoundingClientRect().width;
1160
+ document.body.removeChild(probe);
1161
+ return px;
1162
+ }
1163
+ function DesktopPanel({
1164
+ className,
1165
+ ariaLabel,
1166
+ children,
1167
+ id
1168
+ }) {
1169
+ const { open, close, panelId, sizing, resizable, setLiveWidth } = useAgentPanel();
1170
+ 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) => {
1190
+ event.preventDefault();
1191
+ startX = event.clientX;
1192
+ const rect = node.getBoundingClientRect();
1193
+ startPx = rect.width;
1194
+ widthPx = startPx;
1195
+ document.addEventListener("pointermove", onMove);
1196
+ 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]);
1205
+ return /* @__PURE__ */ jsxRuntime.jsx(
1206
+ SheetPrimitive__namespace.Root,
1207
+ {
1208
+ open,
1209
+ onOpenChange: (next) => {
1210
+ if (!next) close();
1211
+ },
1212
+ children: /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
1213
+ SheetPrimitive__namespace.Content,
1214
+ {
1215
+ id: id ?? panelId,
1216
+ ref: containerRef,
1217
+ "data-slot": "agent-panel",
1218
+ "data-state": open ? "open" : "closed",
1219
+ "aria-label": ariaLabel ?? "AI assistant",
1220
+ 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",
1223
+ "data-[state=closed]:translate-x-full data-[state=open]:translate-x-0",
1224
+ className
1225
+ ),
1226
+ style: {
1227
+ width: `var(--agent-panel-resolved-width, ${sizing.width})`,
1228
+ minWidth: sizing.minWidth,
1229
+ maxWidth: sizing.maxWidth
1230
+ },
1231
+ onPointerDownOutside: (event) => event.preventDefault(),
1232
+ onInteractOutside: (event) => event.preventDefault(),
1233
+ children: [
1234
+ 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
+ )
1245
+ ]
1246
+ }
1247
+ ) })
1248
+ }
1249
+ );
1250
+ }
1251
+ function MobilePanel({
1252
+ ariaLabel,
1253
+ children,
1254
+ className,
1255
+ id
1256
+ }) {
1257
+ const { open, close, panelId } = useAgentPanel();
1258
+ return /* @__PURE__ */ jsxRuntime.jsx(
1259
+ vaul.Drawer.Root,
1260
+ {
1261
+ open,
1262
+ onOpenChange: (next) => {
1263
+ if (!next) close();
1264
+ },
1265
+ children: /* @__PURE__ */ jsxRuntime.jsxs(vaul.Drawer.Portal, { children: [
1266
+ /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Overlay, { className: "fixed inset-0 z-50 bg-black/80" }),
1267
+ /* @__PURE__ */ jsxRuntime.jsxs(
1268
+ vaul.Drawer.Content,
1269
+ {
1270
+ id: id ?? panelId,
1271
+ "data-slot": "agent-panel",
1272
+ "data-state": open ? "open" : "closed",
1273
+ "aria-label": ariaLabel ?? "AI assistant",
1274
+ className: chunkSDWR3F3Y_cjs.cn(
1275
+ "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
+ className
1277
+ ),
1278
+ children: [
1279
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
1280
+ children
1281
+ ]
1282
+ }
1283
+ )
1284
+ ] })
1285
+ }
1286
+ );
1287
+ }
1288
+ function AgentPanel({
1289
+ ariaLabel,
1290
+ className,
1291
+ children,
1292
+ content,
1293
+ id
1294
+ }) {
1295
+ const ctx = useAgentPanel();
1296
+ const body = content ? content({ close: ctx.close, open: ctx.open }) : children;
1297
+ if (ctx.isMobile) {
1298
+ return /* @__PURE__ */ jsxRuntime.jsx(MobilePanel, { ariaLabel, className, id, children: body });
1299
+ }
1300
+ return /* @__PURE__ */ jsxRuntime.jsx(DesktopPanel, { ariaLabel, className, id, children: body });
1301
+ }
1302
+ AgentPanel.displayName = "AgentPanel";
1303
+ var AgentPanelHeader = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1304
+ "div",
1305
+ {
1306
+ ref,
1307
+ "data-slot": "agent-panel-header",
1308
+ className: chunkSDWR3F3Y_cjs.cn(
1309
+ "flex shrink-0 items-start justify-between gap-3 border-b p-4",
1310
+ className
1311
+ ),
1312
+ ...props
1313
+ }
1314
+ ));
1315
+ AgentPanelHeader.displayName = "AgentPanelHeader";
1316
+ var AgentPanelTitle = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1317
+ "h2",
1318
+ {
1319
+ ref,
1320
+ "data-slot": "agent-panel-title",
1321
+ className: chunkSDWR3F3Y_cjs.cn(
1322
+ "text-base font-semibold leading-none tracking-tight",
1323
+ className
1324
+ ),
1325
+ ...props
1326
+ }
1327
+ ));
1328
+ AgentPanelTitle.displayName = "AgentPanelTitle";
1329
+ var AgentPanelDescription = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1330
+ "p",
1331
+ {
1332
+ ref,
1333
+ "data-slot": "agent-panel-description",
1334
+ className: chunkSDWR3F3Y_cjs.cn("text-muted-foreground text-sm", className),
1335
+ ...props
1336
+ }
1337
+ ));
1338
+ AgentPanelDescription.displayName = "AgentPanelDescription";
1339
+ var AgentPanelClose = React8__namespace.forwardRef(({ className, ...props }, ref) => {
1340
+ const { isMobile, close } = useAgentPanel();
1341
+ const Comp = isMobile ? vaul.Drawer.Close : SheetPrimitive__namespace.Close;
1342
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1343
+ Comp,
1344
+ {
1345
+ ref,
1346
+ "data-slot": "agent-panel-close",
1347
+ "aria-label": "Close panel",
1348
+ className: chunkSDWR3F3Y_cjs.cn(
1349
+ "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",
1350
+ className
1351
+ ),
1352
+ onClick: (event) => {
1353
+ props.onClick?.(event);
1354
+ if (!event.defaultPrevented) close();
1355
+ },
1356
+ ...props,
1357
+ children: [
1358
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4", "aria-hidden": true }),
1359
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
1360
+ ]
1361
+ }
1362
+ );
1363
+ });
1364
+ AgentPanelClose.displayName = "AgentPanelClose";
1365
+ var AgentPanelBody = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1366
+ "div",
1367
+ {
1368
+ ref,
1369
+ "data-slot": "agent-panel-body",
1370
+ className: chunkSDWR3F3Y_cjs.cn("min-h-0 flex-1 overflow-y-auto p-4", className),
1371
+ ...props
1372
+ }
1373
+ ));
1374
+ AgentPanelBody.displayName = "AgentPanelBody";
1375
+ var AgentPanelFooter = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1376
+ "div",
1377
+ {
1378
+ ref,
1379
+ "data-slot": "agent-panel-footer",
1380
+ className: chunkSDWR3F3Y_cjs.cn("shrink-0 border-t p-4", className),
1381
+ ...props
1382
+ }
1383
+ ));
1384
+ AgentPanelFooter.displayName = "AgentPanelFooter";
1385
+ var HASH_PREFIX = "#";
1386
+ var DEFAULT_HASH_KEY = "agent";
1387
+ function parseWidth(value, fallback) {
1388
+ if (typeof value === "number") return `${value}px`;
1389
+ if (typeof value === "string" && value.trim().length > 0) return value;
1390
+ return fallback;
1391
+ }
1392
+ function AgentPanelProvider({
1393
+ children,
1394
+ defaultOpen = false,
1395
+ open: openProp,
1396
+ onOpenChange,
1397
+ syncHash = true,
1398
+ hashKey = DEFAULT_HASH_KEY,
1399
+ shortcut = "mod+j",
1400
+ width = "24rem",
1401
+ minWidth = "20rem",
1402
+ maxWidth = "50vw",
1403
+ resizable = false,
1404
+ panelId,
1405
+ className,
1406
+ style
1407
+ }) {
1408
+ const isMobile = chunkQ7Y32IBM_cjs.useIsMobile();
1409
+ const isControlled = openProp !== void 0;
1410
+ const generatedId = React8__namespace.useId();
1411
+ const resolvedPanelId = panelId ?? `agent-panel-${generatedId}`;
1412
+ const sizing = React8__namespace.useMemo(
1413
+ () => ({
1414
+ width: parseWidth(width, "24rem"),
1415
+ minWidth: parseWidth(minWidth, "20rem"),
1416
+ maxWidth: parseWidth(maxWidth, "50vw")
1417
+ }),
1418
+ [width, minWidth, maxWidth]
1419
+ );
1420
+ const readHash = React8__namespace.useCallback(() => {
1421
+ if (typeof window === "undefined") return false;
1422
+ const hash = window.location.hash.replace(/^#/, "");
1423
+ return hash === hashKey || hash.startsWith(`${hashKey}?`);
1424
+ }, [hashKey]);
1425
+ const [internalOpen, setInternalOpen] = React8__namespace.useState(() => {
1426
+ if (isControlled) return Boolean(openProp);
1427
+ if (syncHash) {
1428
+ const fromHash = readHash();
1429
+ return fromHash || defaultOpen;
1430
+ }
1431
+ return defaultOpen;
1432
+ });
1433
+ const open = isControlled ? Boolean(openProp) : internalOpen;
1434
+ const setOpen = React8__namespace.useCallback(
1435
+ (next) => {
1436
+ const resolved = typeof next === "function" ? next(open) : next;
1437
+ if (!isControlled) {
1438
+ setInternalOpen(resolved);
1439
+ }
1440
+ onOpenChange?.(resolved);
1441
+ },
1442
+ [isControlled, onOpenChange, open]
1443
+ );
1444
+ const toggle = React8__namespace.useCallback(() => {
1445
+ setOpen((prev) => !prev);
1446
+ }, [setOpen]);
1447
+ const close = React8__namespace.useCallback(() => {
1448
+ setOpen(false);
1449
+ }, [setOpen]);
1450
+ const [liveWidth, setLiveWidth] = React8__namespace.useState("0px");
1451
+ chunkMSHCIIXL_cjs.useKeyboardShortcut(shortcut, toggle);
1452
+ React8__namespace.useEffect(() => {
1453
+ if (!syncHash || isControlled || typeof window === "undefined") return;
1454
+ const handleHashChange = () => {
1455
+ const next = readHash();
1456
+ setInternalOpen((prev) => prev === next ? prev : next);
1457
+ };
1458
+ window.addEventListener("hashchange", handleHashChange);
1459
+ return () => window.removeEventListener("hashchange", handleHashChange);
1460
+ }, [syncHash, isControlled, readHash]);
1461
+ React8__namespace.useEffect(() => {
1462
+ if (!syncHash || isControlled || typeof window === "undefined") return;
1463
+ const current = window.location.hash.replace(/^#/, "");
1464
+ const desired = open ? hashKey : "";
1465
+ if (open && current !== hashKey) {
1466
+ window.history.replaceState(null, "", `${HASH_PREFIX}${desired}`);
1467
+ } else if (!open && current === hashKey) {
1468
+ window.history.replaceState(
1469
+ null,
1470
+ "",
1471
+ window.location.pathname + window.location.search
1472
+ );
1473
+ }
1474
+ }, [open, syncHash, isControlled, hashKey]);
1475
+ React8__namespace.useEffect(() => {
1476
+ if (!open) setLiveWidth("0px");
1477
+ }, [open]);
1478
+ const contextValue = React8__namespace.useMemo(
1479
+ () => ({
1480
+ open,
1481
+ setOpen,
1482
+ toggle,
1483
+ close,
1484
+ sizing,
1485
+ liveWidth,
1486
+ setLiveWidth,
1487
+ resizable,
1488
+ panelId: resolvedPanelId,
1489
+ isMobile
1490
+ }),
1491
+ [
1492
+ open,
1493
+ setOpen,
1494
+ toggle,
1495
+ close,
1496
+ sizing,
1497
+ liveWidth,
1498
+ resizable,
1499
+ resolvedPanelId,
1500
+ isMobile
1501
+ ]
1502
+ );
1503
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkJTSGZMKE_cjs.AgentPanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
1504
+ "div",
1505
+ {
1506
+ "data-slot": "agent-panel-provider",
1507
+ "data-state": open ? "open" : "closed",
1508
+ "data-panel-id": resolvedPanelId,
1509
+ className: chunkSDWR3F3Y_cjs.cn("relative w-full", className),
1510
+ 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,
1515
+ ...style
1516
+ },
1517
+ children
1518
+ }
1519
+ ) });
1520
+ }
1521
+ 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)]",
1524
+ inline: "relative"
1525
+ };
1526
+ var AgentPanelTrigger = React8__namespace.forwardRef(
1527
+ ({
1528
+ asChild = false,
1529
+ position = "bottom-right",
1530
+ icon,
1531
+ label,
1532
+ ariaLabel,
1533
+ className,
1534
+ children,
1535
+ onClick,
1536
+ type,
1537
+ ...props
1538
+ }, ref) => {
1539
+ const { open, toggle, panelId } = useAgentPanel();
1540
+ const Comp = asChild ? reactSlot.Slot : Button;
1541
+ const isFloating = position !== "inline";
1542
+ const computedLabel = ariaLabel ?? label ?? "Toggle AI assistant";
1543
+ const handleClick = (event) => {
1544
+ onClick?.(event);
1545
+ if (!event.defaultPrevented) toggle();
1546
+ };
1547
+ return /* @__PURE__ */ jsxRuntime.jsx(
1548
+ Comp,
1549
+ {
1550
+ ref,
1551
+ type: asChild ? void 0 : type ?? "button",
1552
+ "data-slot": "agent-panel-trigger",
1553
+ "data-state": open ? "open" : "closed",
1554
+ "aria-label": computedLabel,
1555
+ "aria-expanded": open,
1556
+ "aria-controls": panelId,
1557
+ onClick: handleClick,
1558
+ className: chunkSDWR3F3Y_cjs.cn(
1559
+ isFloating && positionClasses[position],
1560
+ !isFloating && "data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
1561
+ className
1562
+ ),
1563
+ ...props,
1564
+ children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1565
+ icon ?? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessageSquare, { className: "h-5 w-5", "aria-hidden": true }),
1566
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: computedLabel })
1567
+ ] })
1568
+ }
1569
+ );
1570
+ }
1571
+ );
1572
+ AgentPanelTrigger.displayName = "AgentPanelTrigger";
1143
1573
  var Drawer = ({
1144
1574
  shouldScaleBackground = true,
1145
1575
  ...props
@@ -2989,7 +3419,7 @@ function MultiSelect({
2989
3419
  onChange,
2990
3420
  value: selectedValues
2991
3421
  }) {
2992
- const [buttonRef, popoverWidth] = chunkUBF3PJTH_cjs.usePopoverWidth();
3422
+ const [buttonRef, popoverWidth] = chunkMSHCIIXL_cjs.usePopoverWidth();
2993
3423
  const onSelectHandler = (value) => {
2994
3424
  const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
2995
3425
  onChange(nextValues);
@@ -5965,7 +6395,8 @@ var AppTile = ({
5965
6395
  );
5966
6396
  };
5967
6397
  function AppSwitcherContent({ apps }) {
5968
- if (apps.length === 0) return null;
6398
+ if (!apps.length)
6399
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-muted/50 border-t p-3 flex h-12 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs", children: "No apps found" }) });
5969
6400
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-muted/50 border-t px-3 pb-4 pt-3", children: [
5970
6401
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground mb-2 px-1 text-[13px] font-semibold", children: "SELISE Blocks" }),
5971
6402
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-3", children: apps.map((app) => /* @__PURE__ */ jsxRuntime.jsx(AppTile, { app, isLoading: app.isLoading }, app.id)) })
@@ -5992,9 +6423,6 @@ var Agents_default = 'data:image/svg+xml,<svg width="64" height="64" viewBox="0
5992
6423
  // src/assets/images/apps/v2/Data.svg
5993
6424
  var Data_default = 'data:image/svg+xml,<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M16.2232 33.3477C16.5876 33.3546 17.4249 33.8813 17.7839 34.0786C18.6381 34.5476 19.4895 35.0216 20.3382 35.5004C22.0175 36.4438 24.0293 37.508 25.65 38.4953C25.6884 39.2998 25.6426 40.1451 25.6573 40.9525C25.6601 41.1091 25.6667 41.4341 25.7782 41.5383C26.0832 41.8231 26.6174 42.1106 26.9838 42.3315L30.2414 44.3115C30.8106 44.6571 31.5895 45.0921 32.105 45.5067C32.202 45.5919 32.2371 45.8013 32.2387 45.9216C32.2564 47.6883 32.2261 49.4562 32.2521 51.2232C32.2568 51.5313 32.2438 51.749 32.0154 51.9671C31.7425 52.0267 31.6139 52.0129 31.3615 51.8697C30.6642 51.4741 29.9737 51.058 29.2833 50.6509L24.2724 47.6552L19.1725 44.6231C18.2294 44.067 17.0398 43.4193 16.1551 42.8261C16.054 42.6119 16.025 42.3153 16.0237 42.0782C16.0142 40.3254 16.0249 38.5636 16.0231 36.8113L16.0165 34.8886C16.0152 34.457 15.924 33.6647 16.2232 33.3477Z" fill="%23C0A0F6"/>%0A<path d="M31.8277 12C32.4659 12.0113 33.4741 12.5935 34.0783 12.885C35.3768 13.511 36.6718 14.1436 37.9635 14.7829C40.1649 15.864 42.3607 16.9563 44.551 18.0595C45.5485 18.5637 46.6064 19.0338 47.568 19.5984C47.6694 19.6578 47.7763 19.7434 47.8217 19.8559C47.8682 19.9703 47.8595 20.1156 47.8 20.225C47.6603 20.4812 45.7615 21.3599 45.3478 21.5747C42.3859 23.1097 39.4356 24.6663 36.4962 26.2443L33.8385 27.6693C33.465 27.8694 32.587 28.3724 32.232 28.4663C32.0206 28.4845 31.7165 28.4837 31.5279 28.3906C31.0163 28.1382 30.499 27.8451 29.9977 27.5726L26.6907 25.7542C23.9874 24.2526 21.2583 22.7978 18.5047 21.3905C17.8204 21.0325 17.0314 20.6453 16.3558 20.2577C16.1803 20.157 16.1422 19.8774 16.2363 19.6877C16.7106 19.3233 17.7463 18.8443 18.3232 18.5552L21.806 16.8172L27.9223 13.781C28.655 13.4195 31.1639 12.0977 31.8277 12Z" fill="%237C3AED"/>%0A<path d="M47.585 22.6719C47.6292 22.6751 47.6793 22.6766 47.7223 22.6895C47.8224 22.7196 47.8769 22.7899 47.9151 22.8828C47.9897 23.0654 47.9688 29.4748 47.9455 30.1775C47.94 30.3426 47.9317 30.5792 47.8512 30.7244C47.6974 31.0022 45.3304 32.1864 44.8464 32.4499L34.4507 38.1677L31.5721 39.7672C31.0518 40.0591 30.3873 40.4953 29.8384 40.6969C29.4982 40.8215 28.9887 40.4511 28.6885 40.2634C28.412 40.1052 28.1333 39.9794 27.9832 39.6816C27.9214 39.5593 27.8958 39.4228 27.8857 39.2868C27.8539 38.8592 27.9048 38.4048 27.9068 37.9734C27.9098 37.331 27.8119 34.2084 27.9674 33.8029C28.1729 33.2673 45.655 23.6201 47.585 22.6719Z" fill="%237C3AED"/>%0A<path d="M47.6038 33.3633C47.6973 33.3991 47.844 33.439 47.8665 33.5366C48.0219 34.2099 47.9327 35.3748 47.9359 36.0424L47.9422 40.1098C47.9422 40.6423 47.9923 42.3399 47.8562 42.7631C47.5202 43.0933 46.3586 43.7386 45.9069 44.0064C44.9272 44.5862 43.9505 45.1716 42.9779 45.7628L37.3114 49.1956C36.657 49.5912 35.1349 50.5631 34.4951 50.8633C34.473 50.2259 34.4912 49.4926 34.4924 48.8481C34.4935 48.1965 34.5768 44.2573 34.4253 43.963C34.2936 43.7078 33.8479 43.5007 33.6049 43.3528C33.2274 43.1225 32.4413 42.745 32.1932 42.4026C32.1317 42.3178 32.1096 42.2401 32.1238 42.138C32.5044 41.7491 34.5551 40.6364 35.1641 40.2877C37.6897 38.8353 40.2282 37.4055 42.7794 35.9985L45.8801 34.2778C46.3546 34.016 47.1399 33.554 47.6038 33.3633Z" fill="%237C3AED"/>%0A<path d="M16.2244 22.582C16.598 22.5961 19.3288 24.1366 19.7875 24.3864L25.7638 27.694L27.7591 28.8203C28.1739 29.0551 28.7248 29.332 29.078 29.6375C29.4327 30.0358 28.54 30.4217 28.273 30.5807C27.4833 31.0512 26.6002 31.4515 25.8613 31.9932C25.6881 32.1203 25.6804 32.3179 25.6752 32.5125L25.6741 32.5655C25.6556 33.706 25.679 34.8485 25.6564 35.9913C25.0382 35.6972 24.2419 35.2337 23.6195 34.8939L19.7855 32.789C18.9882 32.3502 16.922 31.2641 16.1505 30.7138C15.9423 30.5653 16.0166 28.7264 16.0175 28.2589L16.0134 24.0899C16.0117 23.6321 15.9232 22.8855 16.2244 22.582Z" fill="%23C0A0F6"/>%0A</svg>%0A';
5994
6425
 
5995
- // src/assets/images/apps/v2/IAM.svg
5996
- var IAM_default = 'data:image/svg+xml,<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M46.982 20.4631C47.2024 20.4429 47.4248 20.4615 47.4938 20.7042C47.6291 21.181 47.5444 21.8196 47.544 22.313L47.5479 25.8232L47.5503 32.7042C47.5514 34.3851 47.6824 36.6175 47.3232 38.184C46.5091 41.7346 44.0224 44.6503 41.1236 46.7311C39.8812 47.6232 38.6573 48.5605 37.4259 49.4672L35.3063 51.0107C34.9091 51.3001 33.4444 52.6432 33.3463 51.553C33.3248 51.313 33.3467 50.9032 33.3487 50.6472L33.3561 48.846C33.3534 48.293 33.3455 47.7381 33.3652 47.1856C33.7122 46.9279 34.6334 46.4711 34.8424 46.2072C35.0577 45.9354 34.6291 43.8444 34.5754 43.5091C34.3322 42.0103 34.1012 40.5091 33.8824 39.0064C34.7789 38.4881 35.4436 37.8234 35.8228 36.8416C36.1722 35.93 36.1448 34.9169 35.7467 34.0255C35.2601 32.9273 34.4522 32.2887 33.3561 31.8669C33.3503 31.0316 33.3001 29.092 33.4122 28.2842C33.4444 28.0526 35.3024 27.0785 35.6714 26.8694L39.4789 24.7127L44.5471 21.8297C45.3412 21.3812 46.1769 20.8821 46.982 20.4631Z" fill="%2316A34A"/>%0A<path d="M17.2669 20.4603C17.4113 20.4453 17.5635 20.4488 17.692 20.5199C18.4984 20.9655 19.3118 21.4393 20.1116 21.894L25.1004 24.7212L29.0242 26.9476C29.5596 27.2508 30.6482 27.827 31.0961 28.1641C31.2845 28.5778 31.2048 31.2242 31.2017 31.8749C30.2518 32.2578 29.5877 32.6682 29.0365 33.5793C28.5171 34.4451 28.3627 35.4818 28.6073 36.4614C28.9116 37.6723 29.6264 38.381 30.658 39.0046C30.6337 39.5199 30.4713 40.414 30.3891 40.9426L29.8633 44.2873C29.491 46.585 29.3138 45.9881 31.1926 47.1877C31.2124 47.7097 31.2054 48.2619 31.2024 48.7846C31.2048 49.316 31.3127 51.5826 31.0736 51.9007C31.0172 51.976 30.9813 51.9956 30.8858 52.0011C30.7264 52.0101 30.5058 51.8827 30.3759 51.8015C29.9842 51.5564 29.6128 51.2634 29.2389 50.9921L27.0825 49.4164C25.5456 48.2881 24.0078 47.1811 22.5094 46.0023C20.0821 44.0928 18.1136 41.5054 17.3212 38.4876C16.8862 36.831 17.0193 34.887 17.0189 33.1609L17.0159 27.8412L17.0126 23.303C17.0114 22.5255 17.0029 21.733 17.0174 20.9555C17.0229 20.6599 17.0607 20.6417 17.2669 20.4603Z" fill="%238FD3A8"/>%0A<path d="M32.1386 12.0001C32.2433 11.9991 32.3476 12.007 32.4511 12.0234C32.8802 12.0901 34.926 13.2218 35.4233 13.4828C37.1288 14.3711 38.8288 15.2693 40.5241 16.1774C41.9888 16.9518 43.47 17.7131 44.9308 18.4955C45.0782 18.5744 45.2265 18.6728 45.3237 18.8098C45.3649 19.0961 45.2955 19.1697 45.05 19.3194C44.5876 19.6013 44.1084 19.859 43.6355 20.1233L41.0029 21.5982C38.1806 23.1891 35.35 24.7648 32.5108 26.3252C32.3806 26.3344 32.2476 26.3423 32.1296 26.282C31.459 25.9402 30.7822 25.5539 30.1252 25.1887L26.2716 23.0335L21.7172 20.4837C20.9944 20.0795 20.2653 19.6736 19.545 19.2642C19.3657 19.1623 19.3294 19.0857 19.2876 18.8941C19.3427 18.7021 19.5003 18.5797 19.6734 18.4893C20.3365 18.143 20.9981 17.7949 21.6589 17.4442L25.8967 15.1873L29.6127 13.2025C30.2009 12.8889 31.5739 12.0768 32.1386 12.0001Z" fill="%2316A34A"/>%0A</svg>%0A';
5997
-
5998
6426
  // src/assets/images/apps/v2/Localization.svg
5999
6427
  var Localization_default = 'data:image/svg+xml,<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M15.5532 20.8477C15.9165 20.8514 17.0018 21.53 17.3811 21.7421C18.9115 22.6016 20.4344 23.4744 21.9495 24.3606L28.0504 27.9096C29.1721 28.5623 30.3193 29.191 31.4208 29.8772C31.5162 29.9368 31.6084 30.003 31.6604 30.1072C31.7266 30.2393 31.6827 30.3814 31.5861 30.4845C31.1254 30.9768 28.2969 32.1754 28.135 32.6131C28.072 32.7831 28.0557 32.9899 28.046 33.1707C27.9776 34.4437 28.0357 35.7536 28.0357 37.0305C28.0357 37.999 27.9601 39.0374 28.0603 39.9957C28.0738 40.1249 28.1196 40.2309 28.1776 40.3463C28.1847 40.3601 28.1921 40.3739 28.1993 40.3877C28.5382 40.6306 29.0616 40.9283 29.4249 41.1476L31.5715 42.4343C31.952 42.6618 32.7453 43.1033 33.0251 43.3933C33.1612 43.9221 33.1222 44.7222 33.1173 45.2791C33.1043 46.7076 33.1441 48.1507 33.1039 49.5767C32.9585 49.898 32.7347 50.0186 32.4049 49.8301C31.2632 49.1778 30.1381 48.4943 29.0097 47.8192L21.9947 43.6414C21.4821 44.0488 18.318 46.3262 17.9218 46.4237L17.8751 46.3912C17.7471 45.9647 17.803 41.7906 17.8045 41.1415C16.9904 40.6639 16.1346 40.2004 15.3555 39.6723C14.9074 39.3684 15.0126 38.3277 15.0069 37.8304C14.9987 37.1076 15.0075 36.3737 15.008 35.6495L15.0116 29.2776L15.0127 24.0909C15.012 23.2941 14.9955 22.4922 15.0037 21.6956C15.0054 21.5349 15.0581 21.2358 15.1426 21.093C15.2401 20.9284 15.3783 20.8979 15.5532 20.8477ZM19.7614 35.9121C19.9181 35.5663 20.0756 35.1971 20.2622 34.8685C20.7053 35.0941 22.9817 36.1965 23.1497 36.4316C23.2731 36.8822 23.4002 37.382 23.5383 37.8241C23.9412 38.035 24.4483 38.3171 24.864 38.4785C24.1767 35.8479 23.3642 33.1824 22.6148 30.5673C22.1631 30.3234 21.6781 30.0521 21.2097 29.8464C20.4149 31.3446 19.7076 32.9136 18.9192 34.418C18.7823 34.6794 18.6344 34.9661 18.5168 35.2343C18.929 35.465 19.3439 35.6909 19.7614 35.9121Z" fill="%230EA5A4"/>%0A<path d="M21.7965 31.7148C21.9331 31.8375 22.5935 34.4311 22.6908 34.8362C22.4837 34.7375 22.2629 34.6191 22.0573 34.5134C21.6246 34.3047 21.1886 34.0692 20.762 33.8461C21.0098 33.2963 21.4999 32.2204 21.7965 31.7148Z" fill="%230EA5A4"/>%0A<path d="M32.4075 12.0001C33.0695 11.9881 35.1377 13.2792 35.8302 13.6663L40.5851 16.328L45.464 19.0515C46.297 19.5162 47.1345 19.978 47.961 20.4509C48.2332 20.6023 48.6682 20.8965 48.5142 21.2741C48.3558 21.6618 47.3246 22.084 46.9489 22.279L44.5119 23.5492C42.6021 24.5758 40.6989 25.615 38.8025 26.6666C37.6535 27.2984 36.1892 28.0572 35.0967 28.7295C34.9679 28.7365 34.8201 28.7458 34.7047 28.6855C34.2084 28.4264 33.7035 28.1161 33.2226 27.8298L30.2055 26.0158C27.2802 24.2749 24.3459 22.5495 21.4026 20.8394C21.0447 20.6325 19.0043 19.5656 18.9206 19.2601C18.8911 19.1526 18.9118 19.0458 18.9701 18.9524C19.0121 18.8852 19.0644 18.8396 19.1318 18.8001C19.6912 18.4727 20.299 18.1933 20.8749 17.8944L24.5131 16.0027L29.3905 13.4591C30.1061 13.0869 31.7231 12.1433 32.4075 12.0001Z" fill="%230EA5A4"/>%0A<path d="M48.7262 24.2976C49.1513 24.2836 49.33 24.4648 49.3317 24.8914C49.337 26.4166 49.3335 27.9423 49.3327 29.4676L49.3317 38.1345L49.3327 41.8797C49.3339 42.5978 49.3796 43.6047 49.2614 44.3142C49.1981 44.6869 48.2644 45.1473 47.9049 45.3504L46.1149 46.3552C46.1125 47.2032 46.2058 51.4903 46.0084 51.9646L45.9499 51.9871C45.4998 51.8392 44.4616 51.0594 44.0221 50.7576L41.4879 49.0252C40.8906 49.4126 36.6324 51.9369 36.3053 51.992C36.1823 52.0127 36.0176 51.9759 35.9225 51.8894C35.6752 51.6644 35.7796 50.7228 35.778 50.4011C35.7427 48.3937 35.7756 46.3801 35.776 44.3718C35.7764 43.7518 35.8631 42.4648 35.7272 41.9138C35.5761 41.3034 31.0357 39.2381 30.7418 38.6101C30.5842 38.2721 30.6256 34.6059 30.7721 34.2605C30.8341 34.1149 31.0937 33.9804 31.2311 33.8992C32.6147 33.0809 34.0412 32.3168 35.4469 31.5359L42.5856 27.5847C43.969 26.8203 45.3566 26.0623 46.7477 25.3123C47.2197 25.0602 48.2624 24.4751 48.7262 24.2976ZM43.5963 35.1843V39.6218C43.5963 39.9116 43.5398 40.1975 43.4264 40.4793C43.3131 40.761 43.1506 41.0178 42.9401 41.2498C42.7316 41.4784 42.4843 41.662 42.1989 41.8015C41.9136 41.941 41.6671 41.9991 41.4586 41.9744C41.2501 41.9473 41.0877 41.8484 40.9723 41.6785C40.8591 41.5077 40.8025 41.2775 40.8024 40.9881V36.5506L39.6754 37.1004V41.6433C39.6754 42.1413 39.7804 42.5284 39.9889 42.8045C40.1973 43.0804 40.4905 43.2327 40.8688 43.2605C41.2473 43.2859 41.6909 43.1739 42.1989 42.9256C42.7048 42.6782 43.1475 42.3571 43.526 41.9617C43.9046 41.5639 44.1984 41.1242 44.4069 40.6443C44.6173 40.1636 44.7223 39.6743 44.7223 39.1765V34.6336L43.5963 35.1843ZM41.7047 34.2488C41.5935 34.1788 41.4555 34.1835 41.2917 34.2635C41.1317 34.3416 40.993 34.4722 40.8756 34.6541C40.7603 34.8326 40.7019 35.0122 40.7018 35.1931C40.7018 35.3652 40.7602 35.4871 40.8756 35.5574C40.993 35.6265 41.1319 35.6218 41.2917 35.5437C41.4555 35.4636 41.5935 35.3332 41.7047 35.1521C41.818 34.9701 41.8746 34.7928 41.8747 34.6209C41.8747 34.44 41.8178 34.3157 41.7047 34.2488ZM43.526 33.3582C43.4147 33.2881 43.2769 33.2927 43.1129 33.3728C42.9531 33.451 42.8143 33.5816 42.6969 33.7635C42.5817 33.9419 42.5241 34.1216 42.5241 34.3025C42.5241 34.4745 42.5816 34.5964 42.6969 34.6668C42.8143 34.7361 42.9531 34.7311 43.1129 34.6531C43.2768 34.573 43.4147 34.4425 43.526 34.2615C43.6394 34.0793 43.6959 33.9013 43.6959 33.7293C43.6959 33.5484 43.6393 33.4249 43.526 33.3582Z" fill="%238BD4D3"/>%0A</svg>%0A';
6000
6428
 
@@ -6018,19 +6446,6 @@ var Utilities_default = 'data:image/svg+xml,<svg width="64" height="64" viewBox=
6018
6446
 
6019
6447
  // src/components/common/app-switcher/app-switcher.constant.ts
6020
6448
  var APP_SWITCHER_DATA = [
6021
- {
6022
- id: "blocks-iam",
6023
- label: "IAM",
6024
- description: "Identity & Access",
6025
- url: window.process?.env.BLOCKS_IAM_BASE_URL || "",
6026
- icon: IAM_default,
6027
- clientId: "BLOCKS_IAM_CLIENT_ID",
6028
- redirectUri: "BLOCKS_IAM_CALLBACK_URL",
6029
- initiateUrl: "",
6030
- isLoading: false,
6031
- isDisabled: false,
6032
- forwardedTo: "/app/profile"
6033
- },
6034
6449
  {
6035
6450
  id: "blocks-localization",
6036
6451
  label: "Localization",
@@ -6174,7 +6589,7 @@ function useAppRedirectUrls({
6174
6589
  const controller = new AbortController();
6175
6590
  const { signal } = controller;
6176
6591
  stableApps.forEach((app) => {
6177
- chunkUBF3PJTH_cjs.initiateService.fetchRedirectUrl({
6592
+ chunkMSHCIIXL_cjs.initiateService.fetchRedirectUrl({
6178
6593
  clientId: chunkHF24SZFI_cjs.getRuntimeEnv(app.clientId),
6179
6594
  redirectUri: chunkHF24SZFI_cjs.getRuntimeEnv(app.redirectUri),
6180
6595
  forwardedTo: resolveRef.current(app)
@@ -6200,7 +6615,7 @@ function useAppRedirectUrls({
6200
6615
  }
6201
6616
  var AppSwitcher = ({ forwardedTo }) => {
6202
6617
  const [open, setOpen] = React8.useState(false);
6203
- const config = chunkUBF3PJTH_cjs.useBlocksAppConfigStore((state) => state.getConfig());
6618
+ const config = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.getConfig());
6204
6619
  const filteredApps = React8.useMemo(
6205
6620
  () => filteredAppSwitcherData.filter((app) => app.id !== config.name),
6206
6621
  [config.name]
@@ -6233,7 +6648,7 @@ var OPTIONS = [
6233
6648
  { value: "dark", Icon: lucideReact.Moon, label: "Dark" }
6234
6649
  ];
6235
6650
  function ThemeSwitcher() {
6236
- const { theme, setTheme } = chunkUBF3PJTH_cjs.useTheme();
6651
+ const { theme, setTheme } = chunkMSHCIIXL_cjs.useTheme();
6237
6652
  return /* @__PURE__ */ jsxRuntime.jsx(
6238
6653
  Tabs,
6239
6654
  {
@@ -6300,13 +6715,14 @@ function UserAvatar({ size = "sm" }) {
6300
6715
  );
6301
6716
  }
6302
6717
  function UserDropdownMenu() {
6718
+ const { name } = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.config);
6303
6719
  const { data: data2 } = useGetUserInfo();
6304
6720
  const userData = data2?.data;
6305
- const { isPending, mutateAsync } = chunkUBF3PJTH_cjs.useLogout();
6721
+ const { isPending, mutateAsync } = chunkMSHCIIXL_cjs.useLogout();
6306
6722
  const { resetProjectStore } = chunkVAKGHXK6_cjs.useProjectStore();
6307
6723
  const { setUnAuthenticated, clearTokens } = chunkVAKGHXK6_cjs.useAuthStore();
6308
6724
  const { resetSelectedLanguages } = chunkVNUPOJ7H_cjs.useLanguageViewStore();
6309
- const { data: myOrgsData, isLoading: isOrgsLoading } = chunkUBF3PJTH_cjs.useGetMyOrganizations();
6725
+ const { data: myOrgsData, isLoading: isOrgsLoading } = chunkMSHCIIXL_cjs.useGetMyOrganizations();
6310
6726
  const fullName = [userData?.firstName, userData?.lastName].filter(Boolean).join(" ") || "\u2014";
6311
6727
  const email = userData?.email || "";
6312
6728
  const roles = Object.values(userData?.roles || {}).flat();
@@ -6358,18 +6774,20 @@ function UserDropdownMenu() {
6358
6774
  ] })
6359
6775
  ] })
6360
6776
  ] }),
6361
- /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, { className: "my-0 bg-border/80" }),
6362
- /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuGroup, { className: "p-1.5", children: /* @__PURE__ */ jsxRuntime.jsx(
6363
- DropdownMenuItem,
6364
- {
6365
- asChild: true,
6366
- className: "cursor-pointer rounded-md px-4 py-3.5",
6367
- children: /* @__PURE__ */ jsxRuntime.jsxs(reactRouter.Link, { to: "/app/profile", className: "flex items-center gap-4", children: [
6368
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserRound, { className: "h-5 w-5 shrink-0 text-foreground/90" }),
6369
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: "My Profile" })
6370
- ] })
6371
- }
6372
- ) }),
6777
+ /* @__PURE__ */ jsxRuntime.jsxs(RenderConditionally, { condition: name !== "blocks-iam", children: [
6778
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, { className: "my-0 bg-border/80" }),
6779
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuGroup, { className: "p-1.5", children: /* @__PURE__ */ jsxRuntime.jsx(
6780
+ DropdownMenuItem,
6781
+ {
6782
+ asChild: true,
6783
+ className: "cursor-pointer rounded-md px-4 py-3.5",
6784
+ children: /* @__PURE__ */ jsxRuntime.jsxs(reactRouter.Link, { to: "/app/profile", className: "flex items-center gap-4", children: [
6785
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserRound, { className: "h-5 w-5 shrink-0 text-foreground/90" }),
6786
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: "My Profile" })
6787
+ ] })
6788
+ }
6789
+ ) })
6790
+ ] }),
6373
6791
  /* @__PURE__ */ jsxRuntime.jsxs(RenderConditionally, { condition: organizations.length > 0, children: [
6374
6792
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, { className: "my-0 bg-border/80" }),
6375
6793
  /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenuGroup, { className: "p-1.5", children: [
@@ -6434,7 +6852,7 @@ var languages = [
6434
6852
  { key: "fr", title: "French" }
6435
6853
  ];
6436
6854
  function LanguageSelector() {
6437
- const { changeLanguage, language } = chunkUBF3PJTH_cjs.useLanguageSwitcher();
6855
+ const { changeLanguage, language } = chunkMSHCIIXL_cjs.useLanguageSwitcher();
6438
6856
  return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
6439
6857
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
6440
6858
  "button",
@@ -6524,7 +6942,7 @@ var notificationListenerService = new NotificationListenerService();
6524
6942
 
6525
6943
  // src/components/common/notification/use-notification-socket.ts
6526
6944
  function useNotificationSocket() {
6527
- const { data: configData } = chunkUBF3PJTH_cjs.useGetBlocksNotificationConfig(0, 100);
6945
+ const { data: configData } = chunkMSHCIIXL_cjs.useGetBlocksNotificationConfig(0, 100);
6528
6946
  const queryClient = reactQuery.useQueryClient();
6529
6947
  notificationListenerService.connect();
6530
6948
  React8.useEffect(() => {
@@ -6539,7 +6957,7 @@ function useNotificationSocket() {
6539
6957
  notificationListenerService.connection.on(
6540
6958
  config.notifyMethod,
6541
6959
  (message) => {
6542
- chunkUBF3PJTH_cjs.notificationService.getNotificationConfig(config, message);
6960
+ chunkMSHCIIXL_cjs.notificationService.getNotificationConfig(config, message);
6543
6961
  try {
6544
6962
  const notice = typeof message === "string" ? JSON.parse(message) : message;
6545
6963
  const denom = JSON.parse(
@@ -6563,12 +6981,12 @@ function useNotificationFeed(open) {
6563
6981
  const [notifications, setNotifications] = React8.useState([]);
6564
6982
  const [hasMore, setHasMore] = React8.useState(true);
6565
6983
  const listRef = React8.useRef(null);
6566
- const { data: data2, isLoading, isFetching } = chunkUBF3PJTH_cjs.useGetNotifications(
6984
+ const { data: data2, isLoading, isFetching } = chunkMSHCIIXL_cjs.useGetNotifications(
6567
6985
  pageNumber,
6568
6986
  PAGE_SIZE
6569
6987
  );
6570
- const markAsRead = chunkUBF3PJTH_cjs.useMarkAsRead();
6571
- const markAllAsRead = chunkUBF3PJTH_cjs.useMarkAllAsRead();
6988
+ const markAsRead = chunkMSHCIIXL_cjs.useMarkAsRead();
6989
+ const markAllAsRead = chunkMSHCIIXL_cjs.useMarkAllAsRead();
6572
6990
  React8.useEffect(() => {
6573
6991
  if (!data2?.notifications) return;
6574
6992
  setNotifications((prev) => {
@@ -6802,7 +7220,7 @@ function ConsoleHeader() {
6802
7220
  window.addEventListener("scroll", handleScroll);
6803
7221
  return () => window.removeEventListener("scroll", handleScroll);
6804
7222
  }, []);
6805
- const { appLightLogo, appDarkLogo } = chunkUBF3PJTH_cjs.useLogo();
7223
+ const { appLightLogo, appDarkLogo } = chunkMSHCIIXL_cjs.useLogo();
6806
7224
  return /* @__PURE__ */ jsxRuntime.jsx(
6807
7225
  "div",
6808
7226
  {
@@ -6863,7 +7281,7 @@ function ConsoleHeader() {
6863
7281
  }
6864
7282
  function DashboardHeader(props) {
6865
7283
  const { forwardedTo, redirectPaths, navigationMenus } = props;
6866
- const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkAL2E2WC4_cjs.SidebarContext);
7284
+ const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkJTSGZMKE_cjs.SidebarContext);
6867
7285
  const { pathname } = reactRouter.useLocation();
6868
7286
  const { selectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
6869
7287
  const projectName = selectedProject?.name;
@@ -7154,7 +7572,7 @@ function SelectedProject() {
7154
7572
  ] });
7155
7573
  }
7156
7574
  function AuthLayout({ children, logo, sidePanel }) {
7157
- return /* @__PURE__ */ jsxRuntime.jsx(React8.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkMXZIA4LA_cjs.PublicGuard, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-screen flex-col items-center px-6 py-10 lg:px-12", children: [
7575
+ return /* @__PURE__ */ jsxRuntime.jsx(React8.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkOSFMZAMZ_cjs.PublicGuard, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-screen flex-col items-center px-6 py-10 lg:px-12", children: [
7158
7576
  logo,
7159
7577
  /* @__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: [
7160
7578
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full max-w-xl", children }),
@@ -7167,7 +7585,7 @@ function ConsoleLayout({ children, wrapper }) {
7167
7585
  /* @__PURE__ */ jsxRuntime.jsx(ConsoleHeader, {}),
7168
7586
  /* @__PURE__ */ jsxRuntime.jsx("main", { className: "pt-[59px]", children })
7169
7587
  ] });
7170
- return /* @__PURE__ */ jsxRuntime.jsx(chunkMXZIA4LA_cjs.ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkMXZIA4LA_cjs.ImpersonationTerminator, { children: wrapper ? wrapper(content) : content }) });
7588
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkOSFMZAMZ_cjs.ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkOSFMZAMZ_cjs.ImpersonationTerminator, { children: wrapper ? wrapper(content) : content }) });
7171
7589
  }
7172
7590
  function DashboardLayout({
7173
7591
  children,
@@ -7176,7 +7594,7 @@ function DashboardLayout({
7176
7594
  navigationMenus,
7177
7595
  forwardedTo
7178
7596
  }) {
7179
- const content = /* @__PURE__ */ jsxRuntime.jsx(chunkAL2E2WC4_cjs.DashboardLayoutProvider, { isOpen: true, persist: true, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full overflow-hidden", children: [
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: [
7180
7598
  /* @__PURE__ */ jsxRuntime.jsx(
7181
7599
  SidebarMenuDesktop,
7182
7600
  {
@@ -7193,10 +7611,17 @@ function DashboardLayout({
7193
7611
  forwardedTo
7194
7612
  }
7195
7613
  ),
7196
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex min-h-0 w-full flex-1 overflow-hidden bg-[hsl(var(--surface-app))]", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 w-full flex-1 overflow-y-auto overflow-x-hidden", children }) })
7614
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex min-h-0 w-full flex-1 overflow-hidden bg-[hsl(var(--surface-app))]", children: /* @__PURE__ */ jsxRuntime.jsx(
7615
+ "div",
7616
+ {
7617
+ "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)]",
7619
+ children
7620
+ }
7621
+ ) })
7197
7622
  ] })
7198
- ] }) });
7199
- return /* @__PURE__ */ jsxRuntime.jsx(chunkMXZIA4LA_cjs.ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkMXZIA4LA_cjs.ImpersonationSynchronizer, { children: wrapper ? wrapper(content) : content }) });
7623
+ ] }) }) });
7624
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkOSFMZAMZ_cjs.ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkOSFMZAMZ_cjs.ImpersonationSynchronizer, { children: wrapper ? wrapper(content) : content }) });
7200
7625
  }
7201
7626
  var DEFAULT_EXCLUDE_PREFIXES = ["/app/project"];
7202
7627
  var withScopedItemId = (menus, itemId, excludePrefixes) => menus.map((menu) => {
@@ -7243,7 +7668,7 @@ function OidcLayout({
7243
7668
  return /* @__PURE__ */ jsxRuntime.jsx(OidcContext.Provider, { value: contextValue, children });
7244
7669
  }
7245
7670
  function PublicLayout({ children }) {
7246
- return /* @__PURE__ */ jsxRuntime.jsx(React8.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkMXZIA4LA_cjs.PublicGuard, { children }) });
7671
+ return /* @__PURE__ */ jsxRuntime.jsx(React8.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkOSFMZAMZ_cjs.PublicGuard, { children }) });
7247
7672
  }
7248
7673
  var LoginHeader = ({
7249
7674
  docsUrl = "https://docs.seliseblocks.com/",
@@ -7252,7 +7677,7 @@ var LoginHeader = ({
7252
7677
  }) => {
7253
7678
  const {
7254
7679
  config: { appLogoUrl }
7255
- } = chunkUBF3PJTH_cjs.useBlocksAppConfigStore((state) => state);
7680
+ } = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state);
7256
7681
  const resolveLogo = (variant) => {
7257
7682
  if (!appLogoUrl) return void 0;
7258
7683
  if (typeof appLogoUrl === "string") return appLogoUrl;
@@ -8456,8 +8881,8 @@ var BlocksLoginPage = ({
8456
8881
  ] });
8457
8882
  };
8458
8883
  var LoginPage = () => {
8459
- const config = chunkUBF3PJTH_cjs.useBlocksAppConfigStore((state) => state.getConfig());
8460
- const { start, isLoading } = chunkUBF3PJTH_cjs.useLogin();
8884
+ const config = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.getConfig());
8885
+ const { start, isLoading } = chunkMSHCIIXL_cjs.useLogin();
8461
8886
  return /* @__PURE__ */ jsxRuntime.jsx(
8462
8887
  BlocksLoginPage,
8463
8888
  {
@@ -8539,10 +8964,10 @@ var DefaultDoc = () => {
8539
8964
  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)) });
8540
8965
  };
8541
8966
  function useCreateProjectRedirect() {
8542
- const { name } = chunkUBF3PJTH_cjs.useBlocksAppConfigStore((state) => state.config);
8967
+ const { name } = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.config);
8543
8968
  const navigate = reactRouter.useNavigate();
8544
8969
  const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
8545
- const { isFetching, isReady, redirect } = chunkUBF3PJTH_cjs.usePrefetchRedirect({
8970
+ const { isFetching, isReady, redirect } = chunkMSHCIIXL_cjs.usePrefetchRedirect({
8546
8971
  clientId: osApp ? chunkHF24SZFI_cjs.getRuntimeEnv(osApp.clientId) : "",
8547
8972
  redirectUri: osApp ? chunkHF24SZFI_cjs.getRuntimeEnv(osApp.redirectUri) : "",
8548
8973
  forwardedTo: "/app/create-project",
@@ -8634,10 +9059,10 @@ function useProjectOverviewRedirect({
8634
9059
  tenantGroupId
8635
9060
  }) {
8636
9061
  const navigate = reactRouter.useNavigate();
8637
- const { name } = chunkUBF3PJTH_cjs.useBlocksAppConfigStore((state) => state.config);
9062
+ const { name } = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.config);
8638
9063
  const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
8639
9064
  const redirectedRoute = `/app/project/${tenantGroupId}/environments`;
8640
- const { isFetching, isReady, redirect } = chunkUBF3PJTH_cjs.usePrefetchRedirect({
9065
+ const { isFetching, isReady, redirect } = chunkMSHCIIXL_cjs.usePrefetchRedirect({
8641
9066
  clientId: osApp ? chunkHF24SZFI_cjs.getRuntimeEnv(osApp.clientId) : "",
8642
9067
  redirectUri: osApp ? chunkHF24SZFI_cjs.getRuntimeEnv(osApp.redirectUri) : "",
8643
9068
  forwardedTo: redirectedRoute,
@@ -8905,7 +9330,7 @@ var CallbackPage = ({ defaultRedirectUrl }) => {
8905
9330
  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" }) });
8906
9331
  };
8907
9332
  function ProfilePage() {
8908
- const { isLoading, error } = chunkUBF3PJTH_cjs.useInitiateRedirect({
9333
+ const { isLoading, error } = chunkMSHCIIXL_cjs.useInitiateRedirect({
8909
9334
  clientId: chunkHF24SZFI_cjs.getRuntimeEnv("BLOCKS_IAM_CLIENT_ID"),
8910
9335
  redirectUri: chunkHF24SZFI_cjs.getRuntimeEnv("BLOCKS_IAM_CALLBACK_URL"),
8911
9336
  forwardedTo: "/app/profile"
@@ -9183,7 +9608,7 @@ var ConfirmationModal = ({
9183
9608
  ] })
9184
9609
  ] });
9185
9610
  var DashboardOverview = () => {
9186
- const { name } = chunkUBF3PJTH_cjs.useBlocksAppConfigStore((state) => state.config);
9611
+ const { name } = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.config);
9187
9612
  const { data: data2, isFetching } = chunkPSATBGVF_cjs.useGetProject();
9188
9613
  const {
9189
9614
  endpoints,
@@ -9880,7 +10305,7 @@ function SidebarMobileView({
9880
10305
  navigationMenus
9881
10306
  }) {
9882
10307
  const [open, setOpen] = React8.useState(false);
9883
- const { appLightLogo, appDarkLogo } = chunkUBF3PJTH_cjs.useLogo();
10308
+ const { appLightLogo, appDarkLogo } = chunkMSHCIIXL_cjs.useLogo();
9884
10309
  const allowedMenu = chunkQ7Y32IBM_cjs.useFilteredMenus(navigationMenus);
9885
10310
  return /* @__PURE__ */ jsxRuntime.jsxs(Sheet, { open, onOpenChange: setOpen, children: [
9886
10311
  /* @__PURE__ */ jsxRuntime.jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", size: "icon", className: "shrink-0", children: [
@@ -9929,9 +10354,9 @@ function SidebarMenuDesktop({
9929
10354
  redirectPaths,
9930
10355
  navigationMenus
9931
10356
  }) {
9932
- const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkAL2E2WC4_cjs.SidebarContext);
9933
- const { appLightLogo, appDarkLogo } = chunkUBF3PJTH_cjs.useLogo();
9934
- const icon = chunkUBF3PJTH_cjs.useIcon();
10357
+ const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkJTSGZMKE_cjs.SidebarContext);
10358
+ const { appLightLogo, appDarkLogo } = chunkMSHCIIXL_cjs.useLogo();
10359
+ const icon = chunkMSHCIIXL_cjs.useIcon();
9935
10360
  const allowedMenu = chunkQ7Y32IBM_cjs.useFilteredMenus(navigationMenus);
9936
10361
  const { isActivePath: isProjectOverviewRoute } = chunkQ7Y32IBM_cjs.useIsActiveMenu("/app/project");
9937
10362
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -11023,7 +11448,7 @@ function MultiSelect2({
11023
11448
  onChange,
11024
11449
  value: selectedValues
11025
11450
  }) {
11026
- const [buttonRef, popoverWidth] = chunkUBF3PJTH_cjs.usePopoverWidth();
11451
+ const [buttonRef, popoverWidth] = chunkMSHCIIXL_cjs.usePopoverWidth();
11027
11452
  const onSelectHandler = (value) => {
11028
11453
  const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
11029
11454
  onChange(nextValues);
@@ -11140,7 +11565,7 @@ var ClearButton = ({ onClear }) => {
11140
11565
  };
11141
11566
  function Radio({ label, options, onChange, value }) {
11142
11567
  const [search, setSearch] = React8.useState("");
11143
- const [buttonRef, popoverWidth] = chunkUBF3PJTH_cjs.usePopoverWidth();
11568
+ const [buttonRef, popoverWidth] = chunkMSHCIIXL_cjs.usePopoverWidth();
11144
11569
  const isMobile = chunkQ7Y32IBM_cjs.useIsMobile();
11145
11570
  const selected = React8.useMemo(
11146
11571
  () => options.find((item) => item.value === value) || null,
@@ -11872,6 +12297,15 @@ exports.Accordion = Accordion;
11872
12297
  exports.AccordionContent = AccordionContent;
11873
12298
  exports.AccordionItem = AccordionItem;
11874
12299
  exports.AccordionTrigger = AccordionTrigger;
12300
+ exports.AgentPanel = AgentPanel;
12301
+ exports.AgentPanelBody = AgentPanelBody;
12302
+ exports.AgentPanelClose = AgentPanelClose;
12303
+ exports.AgentPanelDescription = AgentPanelDescription;
12304
+ exports.AgentPanelFooter = AgentPanelFooter;
12305
+ exports.AgentPanelHeader = AgentPanelHeader;
12306
+ exports.AgentPanelProvider = AgentPanelProvider;
12307
+ exports.AgentPanelTitle = AgentPanelTitle;
12308
+ exports.AgentPanelTrigger = AgentPanelTrigger;
11875
12309
  exports.Alert = Alert;
11876
12310
  exports.AlertDescription = AlertDescription;
11877
12311
  exports.AlertDialog = AlertDialog;
@@ -12201,6 +12635,7 @@ exports.sidebarCollapsedTooltipClass = sidebarCollapsedTooltipClass;
12201
12635
  exports.sortQueryParsers = sortQueryParsers;
12202
12636
  exports.spinnerVariants = spinnerVariants;
12203
12637
  exports.toggleVariants = toggleVariants;
12638
+ exports.useAgentPanel = useAgentPanel;
12204
12639
  exports.useFileUpload = useFileUpload;
12205
12640
  exports.useFormField = useFormField;
12206
12641
  exports.useNotificationSocket = useNotificationSocket;
@@ -12208,5 +12643,5 @@ exports.useOidcContext = useOidcContext;
12208
12643
  exports.usePaginationQueryParams = usePaginationQueryParams;
12209
12644
  exports.useSortQueryParams = useSortQueryParams;
12210
12645
  exports.useWizardStepper = useWizardStepper;
12211
- //# sourceMappingURL=chunk-GHNQN27G.cjs.map
12212
- //# sourceMappingURL=chunk-GHNQN27G.cjs.map
12646
+ //# sourceMappingURL=chunk-SXQBODHS.cjs.map
12647
+ //# sourceMappingURL=chunk-SXQBODHS.cjs.map