@seliseblocks/genesis-os 4.3.5 → 4.3.7

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 (78) hide show
  1. package/dist/{chunk-WBSWAHS6.js → chunk-46ZGVJEX.js} +98 -17
  2. package/dist/chunk-46ZGVJEX.js.map +1 -0
  3. package/dist/{chunk-FKFBYT22.cjs → chunk-4QKE3WAW.cjs} +103 -18
  4. package/dist/chunk-4QKE3WAW.cjs.map +1 -0
  5. package/dist/{chunk-3VNGGYRG.cjs → chunk-4QN4CYSC.cjs} +26 -7
  6. package/dist/chunk-4QN4CYSC.cjs.map +1 -0
  7. package/dist/{chunk-ENK42YC4.js → chunk-4UHGGHI6.js} +17 -3
  8. package/dist/chunk-4UHGGHI6.js.map +1 -0
  9. package/dist/{chunk-VAKGHXK6.cjs → chunk-6GCU5LM7.cjs} +17 -3
  10. package/dist/chunk-6GCU5LM7.cjs.map +1 -0
  11. package/dist/{chunk-NF54AHIF.js → chunk-AHCHUUXM.js} +2 -2
  12. package/dist/{chunk-NF54AHIF.js.map → chunk-AHCHUUXM.js.map} +1 -1
  13. package/dist/{chunk-Q7Y32IBM.cjs → chunk-BPJM3L7O.cjs} +2 -2
  14. package/dist/{chunk-Q7Y32IBM.cjs.map → chunk-BPJM3L7O.cjs.map} +1 -1
  15. package/dist/{chunk-H47HQ5UX.js → chunk-CBQL2T6H.js} +209 -6
  16. package/dist/chunk-CBQL2T6H.js.map +1 -0
  17. package/dist/{chunk-ZVGCCTNK.cjs → chunk-IJMKS4XG.cjs} +12 -12
  18. package/dist/{chunk-ZVGCCTNK.cjs.map → chunk-IJMKS4XG.cjs.map} +1 -1
  19. package/dist/{chunk-6WBFAHAO.js → chunk-JITR3QYC.js} +24 -5
  20. package/dist/chunk-JITR3QYC.js.map +1 -0
  21. package/dist/{chunk-TE3SKUL4.js → chunk-JSXAKNHQ.js} +3 -3
  22. package/dist/{chunk-TE3SKUL4.js.map → chunk-JSXAKNHQ.js.map} +1 -1
  23. package/dist/{chunk-VTOD5ZQU.cjs → chunk-QTSTAWK3.cjs} +3 -3
  24. package/dist/{chunk-VTOD5ZQU.cjs.map → chunk-QTSTAWK3.cjs.map} +1 -1
  25. package/dist/{chunk-XALNVJQU.cjs → chunk-SXEXXJHL.cjs} +236 -21
  26. package/dist/{chunk-H47HQ5UX.js.map → chunk-SXEXXJHL.cjs.map} +1 -1
  27. package/dist/{chunk-IWWGJQGJ.js → chunk-X7X4QYK4.js} +458 -13
  28. package/dist/chunk-X7X4QYK4.js.map +1 -0
  29. package/dist/{chunk-WIY77276.js → chunk-XRAO7JBH.js} +5 -5
  30. package/dist/{chunk-WIY77276.js.map → chunk-XRAO7JBH.js.map} +1 -1
  31. package/dist/{chunk-6DQTH7RD.cjs → chunk-YFTRLNLF.cjs} +611 -159
  32. package/dist/chunk-YFTRLNLF.cjs.map +1 -0
  33. package/dist/components/index.cjs +359 -361
  34. package/dist/components/index.js +9 -11
  35. package/dist/guards/index.cjs +315 -11
  36. package/dist/guards/index.d.cts +3 -1
  37. package/dist/guards/index.d.ts +3 -1
  38. package/dist/guards/index.js +309 -5
  39. package/dist/hooks/index.cjs +92 -93
  40. package/dist/hooks/index.js +6 -7
  41. package/dist/index.cjs +625 -611
  42. package/dist/index.d.cts +2 -2
  43. package/dist/index.d.ts +2 -2
  44. package/dist/index.js +9 -11
  45. package/dist/layouts/index.cjs +16 -18
  46. package/dist/layouts/index.js +9 -11
  47. package/dist/lib/index.cjs +33 -17
  48. package/dist/lib/index.d.cts +57 -2
  49. package/dist/lib/index.d.ts +57 -2
  50. package/dist/lib/index.js +2 -2
  51. package/dist/pages/index.cjs +14 -16
  52. package/dist/pages/index.js +9 -11
  53. package/dist/providers/index.cjs +8 -8
  54. package/dist/providers/index.js +4 -4
  55. package/dist/store/index.cjs +10 -10
  56. package/dist/store/index.d.cts +31 -3
  57. package/dist/store/index.d.ts +31 -3
  58. package/dist/store/index.js +2 -2
  59. package/dist/utils/index.cjs +72 -72
  60. package/dist/utils/index.js +4 -4
  61. package/package.json +1 -1
  62. package/dist/chunk-25L7I5C7.js +0 -265
  63. package/dist/chunk-25L7I5C7.js.map +0 -1
  64. package/dist/chunk-3VNGGYRG.cjs.map +0 -1
  65. package/dist/chunk-6DQTH7RD.cjs.map +0 -1
  66. package/dist/chunk-6WBFAHAO.js.map +0 -1
  67. package/dist/chunk-ENK42YC4.js.map +0 -1
  68. package/dist/chunk-FKFBYT22.cjs.map +0 -1
  69. package/dist/chunk-HS6F65WY.cjs +0 -273
  70. package/dist/chunk-HS6F65WY.cjs.map +0 -1
  71. package/dist/chunk-IICIA5RV.js +0 -212
  72. package/dist/chunk-IICIA5RV.js.map +0 -1
  73. package/dist/chunk-IWWGJQGJ.js.map +0 -1
  74. package/dist/chunk-UVMFL4UV.cjs +0 -225
  75. package/dist/chunk-UVMFL4UV.cjs.map +0 -1
  76. package/dist/chunk-VAKGHXK6.cjs.map +0 -1
  77. package/dist/chunk-WBSWAHS6.js.map +0 -1
  78. package/dist/chunk-XALNVJQU.cjs.map +0 -1
@@ -1,18 +1,16 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkXJ6DPUCV_cjs = require('./chunk-XJ6DPUCV.cjs');
4
- var chunkXALNVJQU_cjs = require('./chunk-XALNVJQU.cjs');
5
- var chunkVTOD5ZQU_cjs = require('./chunk-VTOD5ZQU.cjs');
6
- var chunkZVGCCTNK_cjs = require('./chunk-ZVGCCTNK.cjs');
7
- var chunkQ7Y32IBM_cjs = require('./chunk-Q7Y32IBM.cjs');
8
- var chunkHS6F65WY_cjs = require('./chunk-HS6F65WY.cjs');
9
- var chunkUVMFL4UV_cjs = require('./chunk-UVMFL4UV.cjs');
10
- var chunkFKFBYT22_cjs = require('./chunk-FKFBYT22.cjs');
4
+ var chunkSXEXXJHL_cjs = require('./chunk-SXEXXJHL.cjs');
5
+ var chunkQTSTAWK3_cjs = require('./chunk-QTSTAWK3.cjs');
6
+ var chunk4QKE3WAW_cjs = require('./chunk-4QKE3WAW.cjs');
11
7
  var chunkX4YCRWXO_cjs = require('./chunk-X4YCRWXO.cjs');
8
+ var chunkIJMKS4XG_cjs = require('./chunk-IJMKS4XG.cjs');
9
+ var chunkBPJM3L7O_cjs = require('./chunk-BPJM3L7O.cjs');
12
10
  var chunkYAF2X7W5_cjs = require('./chunk-YAF2X7W5.cjs');
13
11
  var chunkF2LXD7RI_cjs = require('./chunk-F2LXD7RI.cjs');
14
- var chunk3VNGGYRG_cjs = require('./chunk-3VNGGYRG.cjs');
15
- var chunkVAKGHXK6_cjs = require('./chunk-VAKGHXK6.cjs');
12
+ var chunk4QN4CYSC_cjs = require('./chunk-4QN4CYSC.cjs');
13
+ var chunk6GCU5LM7_cjs = require('./chunk-6GCU5LM7.cjs');
16
14
  var chunkQJOVCH5A_cjs = require('./chunk-QJOVCH5A.cjs');
17
15
  var React8 = require('react');
18
16
  var TabsPrimitive = require('@radix-ui/react-tabs');
@@ -576,7 +574,7 @@ var SidebarProvider = React8__namespace.forwardRef(
576
574
  children,
577
575
  ...props
578
576
  }, ref) => {
579
- const isMobile = chunkQ7Y32IBM_cjs.useIsMobile();
577
+ const isMobile = chunkBPJM3L7O_cjs.useIsMobile();
580
578
  const [openMobile, setOpenMobile] = React8__namespace.useState(false);
581
579
  const [_open, _setOpen] = React8__namespace.useState(defaultOpen);
582
580
  const open = openProp ?? _open;
@@ -588,7 +586,7 @@ var SidebarProvider = React8__namespace.forwardRef(
588
586
  } else {
589
587
  _setOpen(openState);
590
588
  }
591
- const cookieStore = new chunkVAKGHXK6_cjs.CookieStorage();
589
+ const cookieStore = new chunk6GCU5LM7_cjs.CookieStorage();
592
590
  cookieStore.setItem(SIDEBAR_COOKIE_NAME, String(openState));
593
591
  },
594
592
  [setOpenProp, open]
@@ -1143,7 +1141,7 @@ var SidebarMenuSubButton = React8__namespace.forwardRef(({ asChild = false, size
1143
1141
  });
1144
1142
  SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
1145
1143
  function useRightSidePanel() {
1146
- return React8.useContext(chunkZVGCCTNK_cjs.RightSidePanelContext) ?? chunkZVGCCTNK_cjs.defaultRightSidePanelContextValue;
1144
+ return React8.useContext(chunkIJMKS4XG_cjs.RightSidePanelContext) ?? chunkIJMKS4XG_cjs.defaultRightSidePanelContextValue;
1147
1145
  }
1148
1146
  function RenderConditionally({
1149
1147
  condition,
@@ -1229,7 +1227,7 @@ function DesktopPanel({
1229
1227
  setLiveWidth,
1230
1228
  topOffset
1231
1229
  } = useRightSidePanel();
1232
- const { setLayoutSetting } = chunk3VNGGYRG_cjs.useLayoutSettingsStore();
1230
+ const { setLayoutSetting } = chunk4QN4CYSC_cjs.useLayoutSettingsStore();
1233
1231
  const containerRef = React8__namespace.useRef(null);
1234
1232
  React8__namespace.useLayoutEffect(() => {
1235
1233
  const container = containerRef.current;
@@ -1478,12 +1476,12 @@ function RightSidePanelProvider({
1478
1476
  style,
1479
1477
  topOffset = "0px"
1480
1478
  }) {
1481
- const isMobile = chunkQ7Y32IBM_cjs.useIsMobile();
1479
+ const isMobile = chunkBPJM3L7O_cjs.useIsMobile();
1482
1480
  const isControlled = openProp !== void 0;
1483
1481
  const generatedId = React8__namespace.useId();
1484
1482
  const resolvedPanelId = panelId ?? `right-side-panel-${generatedId}`;
1485
1483
  const resolvedTopOffset = parseWidth(topOffset, "0px");
1486
- const { layout } = chunk3VNGGYRG_cjs.useLayoutSettingsStore();
1484
+ const { layout } = chunk4QN4CYSC_cjs.useLayoutSettingsStore();
1487
1485
  const sizing = React8__namespace.useMemo(
1488
1486
  () => ({
1489
1487
  width: parseWidth(width, DEFAULT_SIZING_VALUES.width),
@@ -1525,7 +1523,7 @@ function RightSidePanelProvider({
1525
1523
  const close = React8__namespace.useCallback(() => {
1526
1524
  setOpen(false);
1527
1525
  }, [setOpen]);
1528
- chunkXALNVJQU_cjs.useKeyboardShortcut(shortcut, toggle);
1526
+ chunkSXEXXJHL_cjs.useKeyboardShortcut(shortcut, toggle);
1529
1527
  React8__namespace.useEffect(() => {
1530
1528
  if (!syncHash || isControlled || typeof window === "undefined") return;
1531
1529
  const handleHashChange = () => {
@@ -1581,7 +1579,7 @@ function RightSidePanelProvider({
1581
1579
  resolvedTopOffset
1582
1580
  ]
1583
1581
  );
1584
- return /* @__PURE__ */ jsxRuntime.jsx(chunkZVGCCTNK_cjs.RightSidePanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
1582
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkIJMKS4XG_cjs.RightSidePanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
1585
1583
  "div",
1586
1584
  {
1587
1585
  "data-slot": "right-side-panel-provider",
@@ -2390,7 +2388,7 @@ var WizardStepIndicator = ({
2390
2388
  color: indicatorColor,
2391
2389
  backgroundColor: isCompleted ? "hsl(var(--foreground))" : "transparent"
2392
2390
  },
2393
- transition: chunkFKFBYT22_cjs.fadeTransition,
2391
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
2394
2392
  className: chunkYAF2X7W5_cjs.cn(
2395
2393
  "flex size-8 items-center justify-center rounded-full border text-lg font-bold",
2396
2394
  className
@@ -2401,7 +2399,7 @@ var WizardStepIndicator = ({
2401
2399
  initial: { scale: 0, opacity: 0 },
2402
2400
  animate: { scale: 1, opacity: 1 },
2403
2401
  exit: { scale: 0, opacity: 0 },
2404
- transition: chunkFKFBYT22_cjs.fadeTransition,
2402
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
2405
2403
  children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "size-[18px]", "aria-hidden": true })
2406
2404
  },
2407
2405
  "check"
@@ -2411,7 +2409,7 @@ var WizardStepIndicator = ({
2411
2409
  initial: { scale: 0.8, opacity: 0 },
2412
2410
  animate: { scale: 1, opacity: 1 },
2413
2411
  exit: { scale: 0.8, opacity: 0 },
2414
- transition: chunkFKFBYT22_cjs.fadeTransition,
2412
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
2415
2413
  children: stepNumber
2416
2414
  },
2417
2415
  "number"
@@ -2422,7 +2420,7 @@ var WizardStepIndicator = ({
2422
2420
  var WizardVerticalTrackBar = () => {
2423
2421
  const { currentStep, totalSteps, goToStep, completedSteps, getSteps } = useWizardStepper();
2424
2422
  const steps = getSteps();
2425
- return /* @__PURE__ */ jsxRuntime.jsx(framerMotion.motion.div, { layout: true, transition: chunkFKFBYT22_cjs.fadeTransition, children: steps.map((step, index) => {
2423
+ return /* @__PURE__ */ jsxRuntime.jsx(framerMotion.motion.div, { layout: true, transition: chunk4QKE3WAW_cjs.fadeTransition, children: steps.map((step, index) => {
2426
2424
  const stepNumber = index + 1;
2427
2425
  const isCompleted = completedSteps.includes(stepNumber);
2428
2426
  const isCurrent = currentStep === stepNumber;
@@ -2436,7 +2434,7 @@ var WizardVerticalTrackBar = () => {
2436
2434
  {
2437
2435
  layout: true,
2438
2436
  className: "flex items-center gap-2",
2439
- transition: chunkFKFBYT22_cjs.fadeTransition,
2437
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
2440
2438
  children: [
2441
2439
  /* @__PURE__ */ jsxRuntime.jsx(
2442
2440
  Button,
@@ -2463,7 +2461,7 @@ var WizardVerticalTrackBar = () => {
2463
2461
  animate: {
2464
2462
  color: isCurrent || isCompleted ? "hsl(var(--foreground))" : "hsl(var(--muted-foreground))"
2465
2463
  },
2466
- transition: chunkFKFBYT22_cjs.fadeTransition,
2464
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
2467
2465
  className: "ml-4 text-base font-medium",
2468
2466
  children: step.title
2469
2467
  }
@@ -2480,7 +2478,7 @@ var WizardVerticalTrackBar = () => {
2480
2478
  scaleY: isCompleted ? 1 : 0.35,
2481
2479
  backgroundColor: isCompleted ? "hsl(var(--foreground))" : "hsl(var(--border))"
2482
2480
  },
2483
- transition: chunkFKFBYT22_cjs.fadeTransition
2481
+ transition: chunk4QKE3WAW_cjs.fadeTransition
2484
2482
  }
2485
2483
  ) : null
2486
2484
  ]
@@ -2497,7 +2495,7 @@ var WizardHorizontalTrackBar = () => {
2497
2495
  {
2498
2496
  layout: true,
2499
2497
  className: "flex w-full flex-row flex-wrap justify-between",
2500
- transition: chunkFKFBYT22_cjs.fadeTransition,
2498
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
2501
2499
  children: steps.map((step, index) => {
2502
2500
  const stepNumber = index + 1;
2503
2501
  const isCompleted = completedSteps.includes(stepNumber);
@@ -2536,7 +2534,7 @@ var WizardHorizontalTrackBar = () => {
2536
2534
  animate: {
2537
2535
  color: isCurrent || isCompleted ? "hsl(var(--foreground))" : "hsl(var(--muted-foreground))"
2538
2536
  },
2539
- transition: chunkFKFBYT22_cjs.fadeTransition,
2537
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
2540
2538
  className: "hidden md:block",
2541
2539
  children: step.title
2542
2540
  }
@@ -2557,11 +2555,11 @@ var WizardStepViewport = ({
2557
2555
  return /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsxRuntime.jsx(
2558
2556
  framerMotion.motion.div,
2559
2557
  {
2560
- variants: chunkFKFBYT22_cjs.fadeInUp,
2558
+ variants: chunk4QKE3WAW_cjs.fadeInUp,
2561
2559
  initial: "initial",
2562
2560
  animate: "animate",
2563
2561
  exit: "exit",
2564
- transition: chunkFKFBYT22_cjs.fadeTransition,
2562
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
2565
2563
  className,
2566
2564
  children
2567
2565
  },
@@ -3501,7 +3499,7 @@ function MultiSelect({
3501
3499
  onChange,
3502
3500
  value: selectedValues
3503
3501
  }) {
3504
- const [buttonRef, popoverWidth] = chunkXALNVJQU_cjs.usePopoverWidth();
3502
+ const [buttonRef, popoverWidth] = chunkSXEXXJHL_cjs.usePopoverWidth();
3505
3503
  const onSelectHandler = (value) => {
3506
3504
  const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
3507
3505
  onChange(nextValues);
@@ -3509,7 +3507,7 @@ function MultiSelect({
3509
3507
  const onResetHandler = () => {
3510
3508
  onChange([]);
3511
3509
  };
3512
- const isMobile = chunkQ7Y32IBM_cjs.useIsMobile();
3510
+ const isMobile = chunkBPJM3L7O_cjs.useIsMobile();
3513
3511
  return /* @__PURE__ */ jsxRuntime.jsxs(Popover, { children: [
3514
3512
  /* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
3515
3513
  Button,
@@ -3817,7 +3815,7 @@ var CopyToClipboardButton = ({
3817
3815
  ),
3818
3816
  initial: false,
3819
3817
  animate: { opacity: isHoverable ? void 0 : 1 },
3820
- transition: chunkFKFBYT22_cjs.fadeTransition,
3818
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
3821
3819
  children: [
3822
3820
  /* @__PURE__ */ jsxRuntime.jsx(
3823
3821
  Button,
@@ -3834,7 +3832,7 @@ var CopyToClipboardButton = ({
3834
3832
  initial: { scale: 0.6, opacity: 0 },
3835
3833
  animate: { scale: 1, opacity: 1 },
3836
3834
  exit: { scale: 0.6, opacity: 0 },
3837
- transition: chunkFKFBYT22_cjs.fadeTransition,
3835
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
3838
3836
  children: /* @__PURE__ */ jsxRuntime.jsx(
3839
3837
  lucideReact.Check,
3840
3838
  {
@@ -3850,7 +3848,7 @@ var CopyToClipboardButton = ({
3850
3848
  initial: { scale: 0.6, opacity: 0 },
3851
3849
  animate: { scale: 1, opacity: 1 },
3852
3850
  exit: { scale: 0.6, opacity: 0 },
3853
- transition: chunkFKFBYT22_cjs.fadeTransition,
3851
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
3854
3852
  children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Copy, { className: "size-4 text-muted-foreground", "aria-hidden": true })
3855
3853
  },
3856
3854
  "copy"
@@ -3863,7 +3861,7 @@ var CopyToClipboardButton = ({
3863
3861
  layout: true,
3864
3862
  className: "pointer-events-none absolute left-8 top-1/2 z-10 hidden -translate-y-1/2 whitespace-nowrap rounded bg-popover px-2 py-1 text-xs text-popover-foreground shadow-md peer-hover:block",
3865
3863
  animate: { opacity: isCopying ? 1 : 0.9 },
3866
- transition: chunkFKFBYT22_cjs.fadeTransition,
3864
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
3867
3865
  children: isCopying ? copiedLabel : copyLabel
3868
3866
  }
3869
3867
  )
@@ -5230,7 +5228,7 @@ var InfiniteScroller = ({
5230
5228
  initial: { opacity: 0, height: 0 },
5231
5229
  animate: { opacity: 1, height: "auto" },
5232
5230
  exit: { opacity: 0, height: 0 },
5233
- transition: chunkFKFBYT22_cjs.fadeTransition,
5231
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
5234
5232
  children: loadingIndicator
5235
5233
  },
5236
5234
  "loading"
@@ -5241,10 +5239,10 @@ var InfiniteScroller = ({
5241
5239
  framerMotion.motion.div,
5242
5240
  {
5243
5241
  layout: true,
5244
- variants: chunkFKFBYT22_cjs.fadeInUp,
5242
+ variants: chunk4QKE3WAW_cjs.fadeInUp,
5245
5243
  initial: "initial",
5246
5244
  animate: "animate",
5247
- transition: chunkFKFBYT22_cjs.fadeTransition,
5245
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
5248
5246
  children: renderItem(item, index)
5249
5247
  },
5250
5248
  key
@@ -5256,7 +5254,7 @@ var InfiniteScroller = ({
5256
5254
  className: "flex h-full items-center justify-center text-muted-foreground",
5257
5255
  initial: { opacity: 0 },
5258
5256
  animate: { opacity: 1 },
5259
- transition: chunkFKFBYT22_cjs.fadeTransition,
5257
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
5260
5258
  children: emptyContent ?? "No items"
5261
5259
  }
5262
5260
  ) }),
@@ -5267,7 +5265,7 @@ var InfiniteScroller = ({
5267
5265
  initial: { opacity: 0, y: 16 },
5268
5266
  animate: { opacity: 1, y: 0 },
5269
5267
  exit: { opacity: 0, y: 12 },
5270
- transition: chunkFKFBYT22_cjs.fadeTransition,
5268
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
5271
5269
  children: /* @__PURE__ */ jsxRuntime.jsx(
5272
5270
  framerMotion.motion.div,
5273
5271
  {
@@ -5347,14 +5345,14 @@ var FileUploader = React8.forwardRef(
5347
5345
  );
5348
5346
  React8.useEffect(() => {
5349
5347
  if (isFileTooBig) {
5350
- chunkVTOD5ZQU_cjs.showErrorToast({ errors: "The file size is more than 5MB" });
5348
+ chunkQTSTAWK3_cjs.showErrorToast({ errors: "The file size is more than 5MB" });
5351
5349
  }
5352
5350
  }, [isFileTooBig]);
5353
5351
  const onDrop = React8.useCallback(
5354
5352
  (acceptedFiles, rejectedFiles) => {
5355
5353
  const files = acceptedFiles;
5356
5354
  if (!files) {
5357
- chunkVTOD5ZQU_cjs.showErrorToast({ errors: "file error , probably too big" });
5355
+ chunkQTSTAWK3_cjs.showErrorToast({ errors: "file error , probably too big" });
5358
5356
  return;
5359
5357
  }
5360
5358
  const newValues = value ? [...value] : [];
@@ -5372,17 +5370,17 @@ var FileUploader = React8.forwardRef(
5372
5370
  const firstError = rejection?.errors[0];
5373
5371
  if (!firstError) continue;
5374
5372
  if (firstError.code === "file-too-large") {
5375
- chunkVTOD5ZQU_cjs.showErrorToast({
5373
+ chunkQTSTAWK3_cjs.showErrorToast({
5376
5374
  errors: `File is too large. Max size is ${maxSize / 1024 / 1024}MB`
5377
5375
  });
5378
5376
  break;
5379
5377
  }
5380
5378
  if (firstError.code === "file-invalid-type") {
5381
- chunkVTOD5ZQU_cjs.showErrorToast({ errors: "Invalid file type" });
5379
+ chunkQTSTAWK3_cjs.showErrorToast({ errors: "Invalid file type" });
5382
5380
  break;
5383
5381
  }
5384
5382
  if (firstError.message) {
5385
- chunkVTOD5ZQU_cjs.showErrorToast({ errors: firstError.message });
5383
+ chunkQTSTAWK3_cjs.showErrorToast({ errors: firstError.message });
5386
5384
  break;
5387
5385
  }
5388
5386
  }
@@ -5857,7 +5855,7 @@ var Timeline = ({
5857
5855
  className,
5858
5856
  connectorClassName
5859
5857
  }) => {
5860
- const isMobile = chunkQ7Y32IBM_cjs.useIsMobile();
5858
+ const isMobile = chunkBPJM3L7O_cjs.useIsMobile();
5861
5859
  const defaultRightContent = (event) => {
5862
5860
  const revertAction = isMobile ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex w-[25%] justify-end", children: /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
5863
5861
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { type: "button", variant: "ghost", className: "size-5 p-0", children: [
@@ -5905,14 +5903,14 @@ var Timeline = ({
5905
5903
  framerMotion.motion.div,
5906
5904
  {
5907
5905
  className: chunkYAF2X7W5_cjs.cn("mt-4 flex flex-col items-start md:mt-5", className),
5908
- variants: chunkFKFBYT22_cjs.staggerContainer,
5906
+ variants: chunk4QKE3WAW_cjs.staggerContainer,
5909
5907
  initial: "initial",
5910
5908
  animate: "animate",
5911
5909
  children: events.map((event, index) => /* @__PURE__ */ jsxRuntime.jsxs(
5912
5910
  framerMotion.motion.div,
5913
5911
  {
5914
- variants: chunkFKFBYT22_cjs.staggerItem,
5915
- transition: chunkFKFBYT22_cjs.fadeTransition,
5912
+ variants: chunk4QKE3WAW_cjs.staggerItem,
5913
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
5916
5914
  className: "flex min-h-[66px] w-full",
5917
5915
  children: [
5918
5916
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkYAF2X7W5_cjs.cn("relative", isMobile ? "w-[30%]" : "w-[16%]"), children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -5921,7 +5919,7 @@ var Timeline = ({
5921
5919
  className: "absolute -top-1.5 w-full pr-[18px] text-right md:pr-5",
5922
5920
  initial: { opacity: 0, x: -6 },
5923
5921
  animate: { opacity: 1, x: 0 },
5924
- transition: { ...chunkFKFBYT22_cjs.fadeTransition, delay: index * 0.05 },
5922
+ transition: { ...chunk4QKE3WAW_cjs.fadeTransition, delay: index * 0.05 },
5925
5923
  children: leftContent ? leftContent(event) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5926
5924
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-xs font-medium leading-5 md:text-sm", children: event.time }),
5927
5925
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-xs font-medium leading-5 md:text-sm", children: event.date })
@@ -5938,7 +5936,7 @@ var Timeline = ({
5938
5936
  ),
5939
5937
  initial: { scaleY: 0 },
5940
5938
  animate: { scaleY: 1 },
5941
- transition: { ...chunkFKFBYT22_cjs.fadeTransition, delay: index * 0.05 }
5939
+ transition: { ...chunk4QKE3WAW_cjs.fadeTransition, delay: index * 0.05 }
5942
5940
  }
5943
5941
  ) : null,
5944
5942
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -5947,7 +5945,7 @@ var Timeline = ({
5947
5945
  className: "bg-primary relative z-10 size-4 rounded-full",
5948
5946
  initial: { scale: 0 },
5949
5947
  animate: { scale: 1 },
5950
- transition: { ...chunkFKFBYT22_cjs.fadeTransition, delay: index * 0.05 + 0.04 }
5948
+ transition: { ...chunk4QKE3WAW_cjs.fadeTransition, delay: index * 0.05 + 0.04 }
5951
5949
  }
5952
5950
  )
5953
5951
  ] }),
@@ -6000,11 +5998,11 @@ var ImportFileModalContent = ({
6000
5998
  return /* @__PURE__ */ jsxRuntime.jsx(DialogContent, { className: chunkYAF2X7W5_cjs.cn("rounded-md sm:max-w-[450px]", className), children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { mode: "wait", children: !showConfirmation ? /* @__PURE__ */ jsxRuntime.jsxs(
6001
5999
  framerMotion.motion.div,
6002
6000
  {
6003
- variants: chunkFKFBYT22_cjs.fadeInScale,
6001
+ variants: chunk4QKE3WAW_cjs.fadeInScale,
6004
6002
  initial: "initial",
6005
6003
  animate: "animate",
6006
6004
  exit: "exit",
6007
- transition: chunkFKFBYT22_cjs.fadeTransition,
6005
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
6008
6006
  children: [
6009
6007
  /* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { children: [
6010
6008
  /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: "text-left", children: dialogTitle }),
@@ -6016,7 +6014,7 @@ var ImportFileModalContent = ({
6016
6014
  className: "flex flex-col rounded-md bg-muted/50 px-3 py-2",
6017
6015
  initial: { opacity: 0, y: 6 },
6018
6016
  animate: { opacity: 1, y: 0 },
6019
- transition: { ...chunkFKFBYT22_cjs.fadeTransition, delay: 0.05 },
6017
+ transition: { ...chunk4QKE3WAW_cjs.fadeTransition, delay: 0.05 },
6020
6018
  children: [
6021
6019
  /* @__PURE__ */ jsxRuntime.jsxs(framerMotion.motion.div, { className: "flex flex-row items-center", children: [
6022
6020
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -6053,7 +6051,7 @@ var ImportFileModalContent = ({
6053
6051
  initial: { opacity: 0, x: -8 },
6054
6052
  animate: { opacity: 1, x: 0 },
6055
6053
  exit: { opacity: 0, x: 8 },
6056
- transition: chunkFKFBYT22_cjs.fadeTransition,
6054
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
6057
6055
  children: /* @__PURE__ */ jsxRuntime.jsxs(FileUploaderItem, { index, children: [
6058
6056
  /* @__PURE__ */ jsxRuntime.jsx(
6059
6057
  lucideReact.Paperclip,
@@ -6103,11 +6101,11 @@ var ImportFileModalContent = ({
6103
6101
  ) : /* @__PURE__ */ jsxRuntime.jsxs(
6104
6102
  framerMotion.motion.div,
6105
6103
  {
6106
- variants: chunkFKFBYT22_cjs.fadeInScale,
6104
+ variants: chunk4QKE3WAW_cjs.fadeInScale,
6107
6105
  initial: "initial",
6108
6106
  animate: "animate",
6109
6107
  exit: "exit",
6110
- transition: chunkFKFBYT22_cjs.fadeTransition,
6108
+ transition: chunk4QKE3WAW_cjs.fadeTransition,
6111
6109
  children: [
6112
6110
  /* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { children: [
6113
6111
  /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: "text-left", children: processingTitle }),
@@ -6140,7 +6138,7 @@ var childClasses = (isSidebarOpen, isActive) => chunkYAF2X7W5_cjs.cn(
6140
6138
  );
6141
6139
  var ActiveBadge = () => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute right-0 top-2.5 h-5 w-1 rounded-lg bg-primary" });
6142
6140
  var ChildMenuItem = ({ menu, isSidebarOpen }) => {
6143
- const { isActivePath: isActiveMenu } = chunkQ7Y32IBM_cjs.useIsActiveMenu(menu.path);
6141
+ const { isActivePath: isActiveMenu } = chunkBPJM3L7O_cjs.useIsActiveMenu(menu.path);
6144
6142
  return /* @__PURE__ */ jsxRuntime.jsx(SidebarCollapsedTooltip, { label: menu.name, show: !isSidebarOpen, children: /* @__PURE__ */ jsxRuntime.jsxs(
6145
6143
  reactRouter.Link,
6146
6144
  {
@@ -6214,7 +6212,7 @@ function DesktopMenuItem({
6214
6212
  isSidebarOpen
6215
6213
  }) {
6216
6214
  const navigate = reactRouter.useNavigate();
6217
- const { checkIsActivePath } = chunkQ7Y32IBM_cjs.useIsActiveMenu(menu.path);
6215
+ const { checkIsActivePath } = chunkBPJM3L7O_cjs.useIsActiveMenu(menu.path);
6218
6216
  const filteredChildren = React8.useMemo(
6219
6217
  () => menu.children?.filter(
6220
6218
  (subMenu) => subMenu.type === "menu" && !subMenu.disabled
@@ -6335,7 +6333,7 @@ function ChildMenuItem2({
6335
6333
  menu,
6336
6334
  onClick
6337
6335
  }) {
6338
- const isActiveMenu = chunkQ7Y32IBM_cjs.useIsActiveMenu(menu.path);
6336
+ const isActiveMenu = chunkBPJM3L7O_cjs.useIsActiveMenu(menu.path);
6339
6337
  return /* @__PURE__ */ jsxRuntime.jsxs(
6340
6338
  reactRouter.Link,
6341
6339
  {
@@ -6357,7 +6355,7 @@ function MobileMenuItem({
6357
6355
  menu,
6358
6356
  onClick
6359
6357
  }) {
6360
- const { checkIsActivePath } = chunkQ7Y32IBM_cjs.useIsActiveMenu(menu.path);
6358
+ const { checkIsActivePath } = chunkBPJM3L7O_cjs.useIsActiveMenu(menu.path);
6361
6359
  const isActiveMenu = React8.useMemo(() => {
6362
6360
  const allPaths = [menu.path];
6363
6361
  if (menu.children) {
@@ -6690,7 +6688,7 @@ function useAppRedirectUrls({
6690
6688
  const controller = new AbortController();
6691
6689
  const { signal } = controller;
6692
6690
  stableApps.forEach((app) => {
6693
- chunkXALNVJQU_cjs.initiateService.fetchRedirectUrl({
6691
+ chunkSXEXXJHL_cjs.initiateService.fetchRedirectUrl({
6694
6692
  clientId: chunkX4YCRWXO_cjs.getRuntimeEnv(app.clientId),
6695
6693
  redirectUri: chunkX4YCRWXO_cjs.getRuntimeEnv(app.redirectUri),
6696
6694
  forwardedTo: resolveRef.current(app)
@@ -6716,13 +6714,13 @@ function useAppRedirectUrls({
6716
6714
  }
6717
6715
  var AppSwitcher = ({ forwardedTo }) => {
6718
6716
  const [open, setOpen] = React8.useState(false);
6719
- const config = chunkXALNVJQU_cjs.useBlocksAppConfigStore((state) => state.getConfig());
6717
+ const config = chunkSXEXXJHL_cjs.useBlocksAppConfigStore((state) => state.getConfig());
6720
6718
  const filteredApps = React8.useMemo(
6721
6719
  () => filteredAppSwitcherData.filter((app) => app.id !== config.name),
6722
6720
  [config.name]
6723
6721
  );
6724
6722
  const resolveForwardedTo = React8.useCallback(
6725
- (app) => app.forwardedTo ?? forwardedTo ?? chunkVTOD5ZQU_cjs.getForwardedToPath(),
6723
+ (app) => app.forwardedTo ?? forwardedTo ?? chunkQTSTAWK3_cjs.getForwardedToPath(),
6726
6724
  [forwardedTo]
6727
6725
  );
6728
6726
  const blocksApps = useAppRedirectUrls({
@@ -6755,7 +6753,7 @@ function ThemeSwitcher({
6755
6753
  className,
6756
6754
  showChevron = true
6757
6755
  } = {}) {
6758
- const { theme, setTheme } = chunkXALNVJQU_cjs.useTheme();
6756
+ const { theme, setTheme } = chunkSXEXXJHL_cjs.useTheme();
6759
6757
  const { Icon: ThemeIcon } = OPTIONS[theme];
6760
6758
  return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
6761
6759
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
@@ -6823,12 +6821,12 @@ function ThemeSwitcher({
6823
6821
  // src/services/user.service.ts
6824
6822
  var UserService = class {
6825
6823
  async getUserInfo() {
6826
- return chunkFKFBYT22_cjs.iamClient.get(`${chunkFKFBYT22_cjs.PROFILE_ENDPOINTS.ME}`);
6824
+ return chunk4QKE3WAW_cjs.iamClient.get(`${chunk4QKE3WAW_cjs.PROFILE_ENDPOINTS.ME}`);
6827
6825
  }
6828
6826
  };
6829
6827
  var userService = new UserService();
6830
6828
  var useGetUserInfo = (options) => {
6831
- const userStore = chunk3VNGGYRG_cjs.useUserStore();
6829
+ const userStore = chunk4QN4CYSC_cjs.useUserStore();
6832
6830
  return reactQuery.useQuery({
6833
6831
  queryKey: ["user-info"],
6834
6832
  queryFn: async () => {
@@ -6840,7 +6838,7 @@ var useGetUserInfo = (options) => {
6840
6838
  });
6841
6839
  };
6842
6840
  function UserAvatar({ size = "sm" }) {
6843
- const { userDetails: userData } = chunk3VNGGYRG_cjs.useUserStore();
6841
+ const { userDetails: userData } = chunk4QN4CYSC_cjs.useUserStore();
6844
6842
  const initials = `${userData?.firstName?.[0] || ""}${userData?.lastName?.[0] || ""}`.toUpperCase();
6845
6843
  const sizeClass = size === "lg" ? "h-14 w-14 text-xl" : "h-10 w-10 text-base";
6846
6844
  if (userData?.profileImageUrl) {
@@ -6865,14 +6863,14 @@ function UserAvatar({ size = "sm" }) {
6865
6863
  );
6866
6864
  }
6867
6865
  function UserDropdownMenu() {
6868
- const { name } = chunkXALNVJQU_cjs.useBlocksAppConfigStore((state) => state.config);
6866
+ const { name } = chunkSXEXXJHL_cjs.useBlocksAppConfigStore((state) => state.config);
6869
6867
  const { data } = useGetUserInfo();
6870
6868
  const userData = data?.data;
6871
- const { isPending, mutateAsync } = chunkXALNVJQU_cjs.useLogout();
6872
- const { resetProjectStore } = chunkVAKGHXK6_cjs.useProjectStore();
6873
- const { setUnAuthenticated, clearTokens } = chunkVAKGHXK6_cjs.useAuthStore();
6874
- const { resetSelectedLanguages } = chunk3VNGGYRG_cjs.useLanguageViewStore();
6875
- const { data: myOrgsData, isLoading: isOrgsLoading } = chunkXALNVJQU_cjs.useGetMyOrganizations();
6869
+ const { isPending, mutateAsync } = chunkSXEXXJHL_cjs.useLogout();
6870
+ const { resetProjectStore } = chunk6GCU5LM7_cjs.useProjectStore();
6871
+ const { setUnAuthenticated, clearTokens } = chunk6GCU5LM7_cjs.useAuthStore();
6872
+ const { resetSelectedLanguages } = chunk4QN4CYSC_cjs.useLanguageViewStore();
6873
+ const { data: myOrgsData, isLoading: isOrgsLoading } = chunkSXEXXJHL_cjs.useGetMyOrganizations();
6876
6874
  const fullName = [userData?.firstName, userData?.lastName].filter(Boolean).join(" ") || "\u2014";
6877
6875
  const email = userData?.email || "";
6878
6876
  const roles = Object.values(userData?.roles || {}).flat();
@@ -7002,7 +7000,7 @@ var languages = [
7002
7000
  { key: "fr", title: "French" }
7003
7001
  ];
7004
7002
  function LanguageSelector() {
7005
- const { changeLanguage, language } = chunkXALNVJQU_cjs.useLanguageSwitcher();
7003
+ const { changeLanguage, language } = chunkSXEXXJHL_cjs.useLanguageSwitcher();
7006
7004
  return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
7007
7005
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
7008
7006
  "button",
@@ -7092,7 +7090,7 @@ var notificationListenerService = new NotificationListenerService();
7092
7090
 
7093
7091
  // src/components/common/notification/use-notification-socket.ts
7094
7092
  function useNotificationSocket() {
7095
- const { data: configData } = chunkXALNVJQU_cjs.useGetBlocksNotificationConfig(0, 100);
7093
+ const { data: configData } = chunkSXEXXJHL_cjs.useGetBlocksNotificationConfig(0, 100);
7096
7094
  const queryClient = reactQuery.useQueryClient();
7097
7095
  notificationListenerService.connect();
7098
7096
  React8.useEffect(() => {
@@ -7107,7 +7105,7 @@ function useNotificationSocket() {
7107
7105
  notificationListenerService.connection.on(
7108
7106
  config.notifyMethod,
7109
7107
  (message) => {
7110
- chunkXALNVJQU_cjs.notificationService.getNotificationConfig(config, message);
7108
+ chunkSXEXXJHL_cjs.notificationService.getNotificationConfig(config, message);
7111
7109
  try {
7112
7110
  const notice = typeof message === "string" ? JSON.parse(message) : message;
7113
7111
  const denom = JSON.parse(
@@ -7131,12 +7129,12 @@ function useNotificationFeed(open) {
7131
7129
  const [notifications, setNotifications] = React8.useState([]);
7132
7130
  const [hasMore, setHasMore] = React8.useState(true);
7133
7131
  const listRef = React8.useRef(null);
7134
- const { data, isLoading, isFetching } = chunkXALNVJQU_cjs.useGetNotifications(
7132
+ const { data, isLoading, isFetching } = chunkSXEXXJHL_cjs.useGetNotifications(
7135
7133
  pageNumber,
7136
7134
  PAGE_SIZE
7137
7135
  );
7138
- const markAsRead = chunkXALNVJQU_cjs.useMarkAsRead();
7139
- const markAllAsRead = chunkXALNVJQU_cjs.useMarkAllAsRead();
7136
+ const markAsRead = chunkSXEXXJHL_cjs.useMarkAsRead();
7137
+ const markAllAsRead = chunkSXEXXJHL_cjs.useMarkAllAsRead();
7140
7138
  React8.useEffect(() => {
7141
7139
  if (!data?.notifications) return;
7142
7140
  setNotifications((prev) => {
@@ -7370,7 +7368,7 @@ function ConsoleHeader() {
7370
7368
  window.addEventListener("scroll", handleScroll);
7371
7369
  return () => window.removeEventListener("scroll", handleScroll);
7372
7370
  }, []);
7373
- const { appLightLogo, appDarkLogo } = chunkXALNVJQU_cjs.useLogo();
7371
+ const { appLightLogo, appDarkLogo } = chunkSXEXXJHL_cjs.useLogo();
7374
7372
  return /* @__PURE__ */ jsxRuntime.jsx(
7375
7373
  "div",
7376
7374
  {
@@ -7434,9 +7432,9 @@ function ConsoleHeader() {
7434
7432
  var HeaderHeight = 60;
7435
7433
  function DashboardHeader(props) {
7436
7434
  const { forwardedTo, redirectPaths, navigationMenus } = props;
7437
- const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkZVGCCTNK_cjs.SidebarContext);
7435
+ const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkIJMKS4XG_cjs.SidebarContext);
7438
7436
  const { pathname } = reactRouter.useLocation();
7439
- const { selectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
7437
+ const { selectedProject } = chunk6GCU5LM7_cjs.useProjectStore();
7440
7438
  const projectName = selectedProject?.name;
7441
7439
  const environment = selectedProject?.environment;
7442
7440
  const isProjectOverviewRoute = pathname.includes("/project");
@@ -7548,8 +7546,8 @@ var EnvironmentCard = ({
7548
7546
  isMigrationOngoing,
7549
7547
  className
7550
7548
  }) => {
7551
- const { setSelectedProject, setTenantGroup } = chunkVAKGHXK6_cjs.useProjectStore();
7552
- const { mutateAsync } = chunkUVMFL4UV_cjs.useStartImpersonation();
7549
+ const { setSelectedProject, setTenantGroup } = chunk6GCU5LM7_cjs.useProjectStore();
7550
+ const { mutateAsync } = chunkSXEXXJHL_cjs.useStartImpersonation();
7553
7551
  const navigate = reactRouter.useNavigate();
7554
7552
  const handleCardClick = async () => {
7555
7553
  try {
@@ -7588,7 +7586,7 @@ var EnvironmentCard = ({
7588
7586
  );
7589
7587
  };
7590
7588
  function SelectedEnvironment() {
7591
- const { selectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
7589
+ const { selectedProject } = chunk6GCU5LM7_cjs.useProjectStore();
7592
7590
  const environment = selectedProject?.environment;
7593
7591
  if (!environment) return null;
7594
7592
  return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded-sm w-fit bg-[hsl(var(--blocks-primary-50))] px-1.5 py-0.5 text-[11px] font-semibold text-[hsl(var(--high-emphasis))]", children: environment });
@@ -7603,11 +7601,11 @@ function EnvironmentList({
7603
7601
  }) {
7604
7602
  const navigate = reactRouter.useNavigate();
7605
7603
  const { pathname } = reactRouter.useLocation();
7606
- const { data: projectGroups = [], isLoading } = chunkUVMFL4UV_cjs.useGetProjects({
7604
+ const { data: projectGroups = [], isLoading } = chunkSXEXXJHL_cjs.useGetProjects({
7607
7605
  enabled: true
7608
7606
  });
7609
- const { selectedProject, setSelectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
7610
- const { data: projectData } = chunkUVMFL4UV_cjs.useGetProject();
7607
+ const { selectedProject, setSelectedProject } = chunk6GCU5LM7_cjs.useProjectStore();
7608
+ const { data: projectData } = chunkSXEXXJHL_cjs.useGetProject();
7611
7609
  const pendingProjectRef = React8.useRef(null);
7612
7610
  const redirectRegexMap = React8.useMemo(
7613
7611
  () => Object.entries(redirectPaths).reduce(
@@ -7723,7 +7721,7 @@ function BackToConsoleNavigator() {
7723
7721
  ) });
7724
7722
  }
7725
7723
  function SelectedProject() {
7726
- const { selectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
7724
+ const { selectedProject } = chunk6GCU5LM7_cjs.useProjectStore();
7727
7725
  const projectName = selectedProject?.name;
7728
7726
  if (!projectName) return null;
7729
7727
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 items-center gap-1.5", children: [
@@ -7731,8 +7729,455 @@ function SelectedProject() {
7731
7729
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-sm font-medium text-foreground", children: projectName })
7732
7730
  ] });
7733
7731
  }
7732
+ function ProtectedGuard({
7733
+ children,
7734
+ defaultPublicPath = "/login"
7735
+ }) {
7736
+ const { isAuthenticated } = chunk6GCU5LM7_cjs.useAuthStore();
7737
+ const navigate = reactRouter.useNavigate();
7738
+ React8.useEffect(() => {
7739
+ if (!isAuthenticated) navigate(defaultPublicPath);
7740
+ }, [isAuthenticated, defaultPublicPath, navigate]);
7741
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
7742
+ }
7743
+ var useAppState = () => {
7744
+ const [isMounted, setIsMounted] = React8.useState(false);
7745
+ React8.useEffect(() => {
7746
+ setIsMounted(true);
7747
+ }, []);
7748
+ return { isMounted };
7749
+ };
7750
+ function PublicGuard({
7751
+ children,
7752
+ defaultProtectedPath = "/app/console"
7753
+ }) {
7754
+ const { isAuthenticated } = chunk6GCU5LM7_cjs.useAuthStore();
7755
+ const { isMounted } = useAppState();
7756
+ const navigate = reactRouter.useNavigate();
7757
+ React8.useEffect(() => {
7758
+ if (!isMounted) return;
7759
+ if (isAuthenticated) navigate(defaultProtectedPath, { replace: true });
7760
+ }, [isAuthenticated, isMounted, navigate, defaultProtectedPath]);
7761
+ if (!isMounted) return null;
7762
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
7763
+ }
7764
+ function AuthResolver({ children }) {
7765
+ const { setUser, setAuthenticated, setUnAuthenticated } = chunk6GCU5LM7_cjs.useAuthStore();
7766
+ const hasResolved = React8.useRef(false);
7767
+ React8.useEffect(() => {
7768
+ if (hasResolved.current) return;
7769
+ hasResolved.current = true;
7770
+ async function resolve() {
7771
+ try {
7772
+ const res = await chunk4QKE3WAW_cjs.iamClient.get(`${chunk4QKE3WAW_cjs.AUTH_ENDPOINTS.ME}`);
7773
+ setUser(res);
7774
+ setAuthenticated();
7775
+ } catch {
7776
+ setUnAuthenticated();
7777
+ }
7778
+ }
7779
+ resolve();
7780
+ }, [setAuthenticated, setUnAuthenticated, setUser]);
7781
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
7782
+ }
7783
+ var BlocksIcon = ({ size }) => /* @__PURE__ */ jsxRuntime.jsxs(
7784
+ "svg",
7785
+ {
7786
+ width: size,
7787
+ height: size,
7788
+ viewBox: "0 0 246 360",
7789
+ fill: "none",
7790
+ xmlns: "http://www.w3.org/2000/svg",
7791
+ children: [
7792
+ /* @__PURE__ */ jsxRuntime.jsx(
7793
+ "path",
7794
+ {
7795
+ d: "M245.455 68.1627V129.877L168.982 156.67V93.9638L245.455 68.1627Z",
7796
+ fill: "#2D86C7"
7797
+ }
7798
+ ),
7799
+ /* @__PURE__ */ jsxRuntime.jsx(
7800
+ "path",
7801
+ {
7802
+ d: "M240.389 62.3805L165.49 87.6573L5.30933 24.2563L85.3314 0L240.389 62.3805Z",
7803
+ fill: "#2D86C7"
7804
+ }
7805
+ ),
7806
+ /* @__PURE__ */ jsxRuntime.jsx(
7807
+ "path",
7808
+ {
7809
+ d: "M161.797 93.8295V156.43L81.1141 122.607V188.07L0 152.738V29.6846L161.797 93.8295Z",
7810
+ fill: "#2D86C7"
7811
+ }
7812
+ ),
7813
+ /* @__PURE__ */ jsxRuntime.jsx(
7814
+ "path",
7815
+ {
7816
+ d: "M76.4728 266.036L0 291.837V230.123L76.4728 203.329V266.036Z",
7817
+ fill: "#2D86C7"
7818
+ }
7819
+ ),
7820
+ /* @__PURE__ */ jsxRuntime.jsx(
7821
+ "path",
7822
+ {
7823
+ d: "M160.123 360L5.07178 297.619L79.964 272.343L240.145 335.744L160.123 360Z",
7824
+ fill: "#2D86C7"
7825
+ }
7826
+ ),
7827
+ /* @__PURE__ */ jsxRuntime.jsx(
7828
+ "path",
7829
+ {
7830
+ d: "M245.454 330.315L83.657 266.17V203.57L164.34 237.393V171.93L245.454 207.262V330.315Z",
7831
+ fill: "#2D86C7"
7832
+ }
7833
+ )
7834
+ ]
7835
+ }
7836
+ );
7837
+ var AppLoadingSpinner = ({ size = 64 }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
7838
+ /* @__PURE__ */ jsxRuntime.jsx("style", { children: `
7839
+ @keyframes breathe {
7840
+ 0%, 100% { transform: scaleY(1); }
7841
+ 50% { transform: scaleY(0.85); }
7842
+
7843
+ }
7844
+ .animate-breathe {
7845
+ animation: breathe 2s ease-in-out infinite;
7846
+ transform-origin: center;
7847
+ }
7848
+ ` }),
7849
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-background fixed inset-0 z-50 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "animate-breathe", children: /* @__PURE__ */ jsxRuntime.jsx(BlocksIcon, { size }) }) })
7850
+ ] });
7851
+ var projectNameFor = (projects, tenantId) => tenantId && projects.find((p) => p.tenantId === tenantId)?.name || null;
7852
+ var ImpersonationChecker = ({
7853
+ children
7854
+ }) => {
7855
+ const { data, isLoading, isSuccess } = chunkSXEXXJHL_cjs.useImpersonationStatusChecker();
7856
+ const { setImpersonation, isInitialized, setInitialized } = chunk4QN4CYSC_cjs.useImpersonateStore();
7857
+ React8.useEffect(() => {
7858
+ if (!data) return;
7859
+ setImpersonation(
7860
+ data.impersonated,
7861
+ data.originalTenantId,
7862
+ data.impersonated ? data.impersonatedTenantId : null
7863
+ );
7864
+ setInitialized(true);
7865
+ }, [data, setImpersonation, setInitialized]);
7866
+ if (isLoading || !isSuccess || !isInitialized) return null;
7867
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
7868
+ };
7869
+ function ImpersonationBlocked({
7870
+ title,
7871
+ description,
7872
+ primaryLabel,
7873
+ onPrimary,
7874
+ consolePath
7875
+ }) {
7876
+ const navigate = reactRouter.useNavigate();
7877
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-[320px] w-full flex-col items-center justify-center gap-4 p-8 text-center", children: [
7878
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1", children: [
7879
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-base font-semibold", children: title }),
7880
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "max-w-md text-sm text-muted-foreground", children: description })
7881
+ ] }),
7882
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
7883
+ primaryLabel && onPrimary && /* @__PURE__ */ jsxRuntime.jsx(Button, { onClick: onPrimary, children: primaryLabel }),
7884
+ consolePath && /* @__PURE__ */ jsxRuntime.jsx(
7885
+ Button,
7886
+ {
7887
+ variant: primaryLabel && onPrimary ? "outline" : "default",
7888
+ onClick: () => navigate(consolePath),
7889
+ children: "Go to console"
7890
+ }
7891
+ )
7892
+ ] })
7893
+ ] });
7894
+ }
7895
+ function ImpersonationWaiting({ label }) {
7896
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-[320px] w-full flex-col items-center justify-center gap-3", children: [
7897
+ /* @__PURE__ */ jsxRuntime.jsx(AppLoadingSpinner, {}),
7898
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: label })
7899
+ ] });
7900
+ }
7901
+ function ImpersonationTerminator({
7902
+ children
7903
+ }) {
7904
+ const {
7905
+ terminate,
7906
+ isImpersonated,
7907
+ detachedReason,
7908
+ detachedTenantId,
7909
+ setDetached
7910
+ } = chunk4QN4CYSC_cjs.useImpersonateStore();
7911
+ const { mutateAsync } = chunkSXEXXJHL_cjs.useStopImpersonation();
7912
+ const { projects } = chunk6GCU5LM7_cjs.useProjectStore();
7913
+ const isTriggering = React8.useRef(false);
7914
+ const [isTerminating, setIsTerminating] = React8.useState(false);
7915
+ const rootTenantId = window.process?.env.BLOCKS_X_BLOCKS_KEY || "";
7916
+ React8.useEffect(() => {
7917
+ if (!rootTenantId) return;
7918
+ const owner = chunk4QKE3WAW_cjs.readCurrentOwner();
7919
+ if (owner && owner.tabId !== chunk4QKE3WAW_cjs.TAB_ID && owner.tenantId !== rootTenantId) {
7920
+ setDetached("another-project", owner.tenantId);
7921
+ }
7922
+ return chunk4QKE3WAW_cjs.subscribeToTenantClaims((claim) => {
7923
+ if (claim.tenantId === rootTenantId) {
7924
+ setDetached(null);
7925
+ return;
7926
+ }
7927
+ setDetached("another-project", claim.tenantId);
7928
+ });
7929
+ }, [rootTenantId, setDetached]);
7930
+ React8.useEffect(() => {
7931
+ if (isTriggering.current || !isImpersonated) return;
7932
+ if (detachedReason) return;
7933
+ isTriggering.current = true;
7934
+ setIsTerminating(true);
7935
+ const stopImpersonation = async () => {
7936
+ let sessionIsRootScoped = false;
7937
+ try {
7938
+ await mutateAsync(void 0);
7939
+ sessionIsRootScoped = true;
7940
+ } catch (error) {
7941
+ if (!(error instanceof chunkX4YCRWXO_cjs.HttpError) || error.status !== 401) {
7942
+ console.error("Error stopping impersonation:", error);
7943
+ }
7944
+ sessionIsRootScoped = error instanceof chunkX4YCRWXO_cjs.HttpError && error.status === 401;
7945
+ } finally {
7946
+ terminate(rootTenantId);
7947
+ if (sessionIsRootScoped && rootTenantId) chunk4QKE3WAW_cjs.claimTenant(rootTenantId);
7948
+ isTriggering.current = false;
7949
+ setIsTerminating(false);
7950
+ }
7951
+ };
7952
+ void stopImpersonation();
7953
+ }, [mutateAsync, terminate, isImpersonated, detachedReason, rootTenantId]);
7954
+ if (detachedReason) {
7955
+ const name = projectNameFor(projects, detachedTenantId);
7956
+ return /* @__PURE__ */ jsxRuntime.jsx(
7957
+ ImpersonationBlocked,
7958
+ {
7959
+ title: name ? `Your session is in ${name}` : "Your session is in a project",
7960
+ description: "The project is open in another window. A session can only be in one place at a time.",
7961
+ primaryLabel: name ? `Leave ${name}` : "Leave the project",
7962
+ onPrimary: () => setDetached(null)
7963
+ }
7964
+ );
7965
+ }
7966
+ if (isImpersonated || isTerminating) {
7967
+ return /* @__PURE__ */ jsxRuntime.jsx(ImpersonationWaiting, { label: "Returning to the console\u2026" });
7968
+ }
7969
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
7970
+ }
7971
+ function ImpersonationSynchronizer({
7972
+ children,
7973
+ consolePath = "/app/console"
7974
+ }) {
7975
+ const {
7976
+ impersonate,
7977
+ isImpersonated,
7978
+ impersonatedTenantId,
7979
+ impersonationError,
7980
+ detachedReason,
7981
+ detachedTenantId,
7982
+ setImpersonationError,
7983
+ setDetached
7984
+ } = chunk4QN4CYSC_cjs.useImpersonateStore();
7985
+ const { mutateAsync } = chunkSXEXXJHL_cjs.useStartImpersonation();
7986
+ const { data: _data } = chunkSXEXXJHL_cjs.useGetProjects({ enabled: true });
7987
+ const { selectedProject, setSelectedProject, projects, setTenantGroup } = chunk6GCU5LM7_cjs.useProjectStore();
7988
+ const isTriggering = React8.useRef(false);
7989
+ const [isImpersonating, setIsImpersonating] = React8.useState(false);
7990
+ const { itemId } = reactRouter.useParams();
7991
+ const rootTenantId = window.process?.env.BLOCKS_X_BLOCKS_KEY || "";
7992
+ const routeTenantId = React8.useMemo(() => {
7993
+ if (!itemId) return null;
7994
+ return projects.find((p) => p.itemId === itemId)?.tenantId ?? null;
7995
+ }, [itemId, projects]);
7996
+ const impersonatedTenantIdRef = React8.useRef(impersonatedTenantId);
7997
+ const selectedProjectRef = React8.useRef(selectedProject);
7998
+ const projectsRef = React8.useRef(projects);
7999
+ const routeTenantIdRef = React8.useRef(routeTenantId);
8000
+ impersonatedTenantIdRef.current = impersonatedTenantId;
8001
+ selectedProjectRef.current = selectedProject;
8002
+ projectsRef.current = projects;
8003
+ routeTenantIdRef.current = routeTenantId;
8004
+ React8.useEffect(() => {
8005
+ if (!itemId || !projects.length) return;
8006
+ if (selectedProject?.itemId === itemId) return;
8007
+ const match = projects.find((p) => p.itemId === itemId);
8008
+ if (match) {
8009
+ setSelectedProject(match);
8010
+ setTenantGroup(match.tenantGroupId);
8011
+ }
8012
+ }, [
8013
+ itemId,
8014
+ selectedProject?.itemId,
8015
+ projects,
8016
+ setSelectedProject,
8017
+ setTenantGroup
8018
+ ]);
8019
+ const getImpersonatedProject = async () => {
8020
+ try {
8021
+ const res = chunkSXEXXJHL_cjs.projectService.getProject();
8022
+ return (await res).data;
8023
+ } catch (error) {
8024
+ console.error("Error fetching projects:", error);
8025
+ }
8026
+ };
8027
+ const runImpersonation = React8.useCallback(async () => {
8028
+ const targetTenantId = routeTenantIdRef.current;
8029
+ const currentTenantId = impersonatedTenantIdRef.current;
8030
+ const knownProjects = projectsRef.current;
8031
+ isTriggering.current = true;
8032
+ setIsImpersonating(true);
8033
+ try {
8034
+ if (!targetTenantId) {
8035
+ if (currentTenantId && !selectedProjectRef.current) {
8036
+ const project2 = knownProjects.find((p) => p.tenantId === currentTenantId) ?? await getImpersonatedProject();
8037
+ if (project2) {
8038
+ setSelectedProject(project2);
8039
+ setTenantGroup(project2.tenantGroupId);
8040
+ }
8041
+ }
8042
+ return;
8043
+ }
8044
+ await mutateAsync({ targeted_tenant_id: targetTenantId });
8045
+ impersonate(targetTenantId, rootTenantId);
8046
+ chunk4QKE3WAW_cjs.claimTenant(targetTenantId);
8047
+ const project = knownProjects.find((p) => p.tenantId === targetTenantId);
8048
+ if (project) {
8049
+ setSelectedProject(project);
8050
+ setTenantGroup(project.tenantGroupId);
8051
+ }
8052
+ } catch (error) {
8053
+ setImpersonationError(error);
8054
+ } finally {
8055
+ isTriggering.current = false;
8056
+ setIsImpersonating(false);
8057
+ }
8058
+ }, [
8059
+ mutateAsync,
8060
+ impersonate,
8061
+ rootTenantId,
8062
+ setSelectedProject,
8063
+ setTenantGroup,
8064
+ setImpersonationError
8065
+ ]);
8066
+ const takeSession = React8.useCallback(() => {
8067
+ setImpersonationError(null);
8068
+ setDetached(null);
8069
+ void runImpersonation();
8070
+ }, [runImpersonation, setImpersonationError, setDetached]);
8071
+ React8.useEffect(() => {
8072
+ const owner = chunk4QKE3WAW_cjs.readCurrentOwner();
8073
+ if (owner && owner.tabId !== chunk4QKE3WAW_cjs.TAB_ID && routeTenantId && owner.tenantId !== routeTenantId) {
8074
+ setDetached(
8075
+ owner.tenantId === rootTenantId ? "console" : "another-project",
8076
+ owner.tenantId
8077
+ );
8078
+ }
8079
+ return chunk4QKE3WAW_cjs.subscribeToTenantClaims((claim) => {
8080
+ const mine = routeTenantIdRef.current;
8081
+ if (!mine) return;
8082
+ if (claim.tenantId === mine) {
8083
+ setDetached(null);
8084
+ return;
8085
+ }
8086
+ setDetached(
8087
+ claim.tenantId === rootTenantId ? "console" : "another-project",
8088
+ claim.tenantId
8089
+ );
8090
+ });
8091
+ }, [routeTenantId, rootTenantId, setDetached]);
8092
+ React8.useEffect(() => {
8093
+ if (!itemId) return;
8094
+ if (isTriggering.current) return;
8095
+ if (impersonationError || detachedReason) return;
8096
+ const needsColdStart = !routeTenantId && !!impersonatedTenantId && !selectedProject;
8097
+ const needsRetarget = !!routeTenantId && routeTenantId !== impersonatedTenantId;
8098
+ if (!needsColdStart && !needsRetarget) return;
8099
+ void runImpersonation();
8100
+ }, [
8101
+ itemId,
8102
+ routeTenantId,
8103
+ impersonatedTenantId,
8104
+ selectedProject,
8105
+ impersonationError,
8106
+ detachedReason,
8107
+ runImpersonation
8108
+ ]);
8109
+ const thisProjectName = projectNameFor(projects, routeTenantId);
8110
+ if (isImpersonating) {
8111
+ return /* @__PURE__ */ jsxRuntime.jsx(
8112
+ ImpersonationWaiting,
8113
+ {
8114
+ label: thisProjectName ? `Opening ${thisProjectName}\u2026` : "Opening project\u2026"
8115
+ }
8116
+ );
8117
+ }
8118
+ if (!itemId) {
8119
+ if (!isImpersonated || isTriggering.current) return null;
8120
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
8121
+ }
8122
+ if (impersonationError) {
8123
+ const accessDenied = impersonationError instanceof chunkX4YCRWXO_cjs.HttpError && impersonationError.status === 403;
8124
+ return accessDenied ? /* @__PURE__ */ jsxRuntime.jsx(
8125
+ ImpersonationBlocked,
8126
+ {
8127
+ title: thisProjectName ? `You don't have access to ${thisProjectName}` : "You don't have access to this project",
8128
+ description: "Your access to this project may have been removed. Pick another project from the console.",
8129
+ consolePath
8130
+ }
8131
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
8132
+ ImpersonationBlocked,
8133
+ {
8134
+ title: thisProjectName ? `Couldn't open ${thisProjectName}` : "Couldn't open this project",
8135
+ description: "Something went wrong switching to this project. Try again, or pick a different one from the console.",
8136
+ primaryLabel: "Try again",
8137
+ onPrimary: takeSession,
8138
+ consolePath
8139
+ }
8140
+ );
8141
+ }
8142
+ if (detachedReason === "console") {
8143
+ return /* @__PURE__ */ jsxRuntime.jsx(
8144
+ ImpersonationBlocked,
8145
+ {
8146
+ title: "Your session returned to the console",
8147
+ description: thisProjectName ? `You went back to the console in another window, so ${thisProjectName} is no longer open here.` : "You went back to the console in another window, so this project is no longer open here.",
8148
+ primaryLabel: thisProjectName ? `Reopen ${thisProjectName}` : "Reopen this project",
8149
+ onPrimary: takeSession,
8150
+ consolePath
8151
+ }
8152
+ );
8153
+ }
8154
+ if (detachedReason === "another-project") {
8155
+ const otherName = projectNameFor(projects, detachedTenantId);
8156
+ return /* @__PURE__ */ jsxRuntime.jsx(
8157
+ ImpersonationBlocked,
8158
+ {
8159
+ title: "Another project is open in this browser",
8160
+ description: otherName ? `Your session moved to ${otherName} in another window. A session can only be in one project at a time.` : "Your session moved to another project in a different window. A session can only be in one project at a time.",
8161
+ primaryLabel: thisProjectName ? `Continue in ${thisProjectName}` : "Continue in this project",
8162
+ onPrimary: takeSession,
8163
+ consolePath
8164
+ }
8165
+ );
8166
+ }
8167
+ if (!routeTenantId)
8168
+ return /* @__PURE__ */ jsxRuntime.jsx(ImpersonationWaiting, { label: "Loading your projects\u2026" });
8169
+ if (routeTenantId !== impersonatedTenantId) {
8170
+ return /* @__PURE__ */ jsxRuntime.jsx(
8171
+ ImpersonationWaiting,
8172
+ {
8173
+ label: thisProjectName ? `Switching to ${thisProjectName}\u2026` : "Switching projects\u2026"
8174
+ }
8175
+ );
8176
+ }
8177
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
8178
+ }
7734
8179
  function PublicLayout({ children }) {
7735
- return /* @__PURE__ */ jsxRuntime.jsx(React8.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkHS6F65WY_cjs.PublicGuard, { children }) });
8180
+ return /* @__PURE__ */ jsxRuntime.jsx(React8.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(PublicGuard, { children }) });
7736
8181
  }
7737
8182
  function AuthLayout({ children, logo, sidePanel }) {
7738
8183
  return /* @__PURE__ */ jsxRuntime.jsx(PublicLayout, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-screen flex-col items-center px-6 py-10 lg:px-12", children: [
@@ -7748,7 +8193,7 @@ function ConsoleLayout({ children, wrapper }) {
7748
8193
  /* @__PURE__ */ jsxRuntime.jsx(ConsoleHeader, {}),
7749
8194
  /* @__PURE__ */ jsxRuntime.jsx("main", { className: "pt-[59px]", children })
7750
8195
  ] });
7751
- return /* @__PURE__ */ jsxRuntime.jsx(chunkHS6F65WY_cjs.ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkHS6F65WY_cjs.ImpersonationTerminator, { children: wrapper ? wrapper(content) : content }) });
8196
+ return /* @__PURE__ */ jsxRuntime.jsx(ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(ImpersonationTerminator, { children: wrapper ? wrapper(content) : content }) });
7752
8197
  }
7753
8198
  function DashboardLayout({
7754
8199
  children,
@@ -7757,7 +8202,7 @@ function DashboardLayout({
7757
8202
  navigationMenus,
7758
8203
  forwardedTo
7759
8204
  }) {
7760
- const content = /* @__PURE__ */ jsxRuntime.jsx(chunkZVGCCTNK_cjs.DashboardLayoutProvider, { isOpen: true, children: /* @__PURE__ */ jsxRuntime.jsx(RightSidePanelProvider, { resizable: true, topOffset: HeaderHeight, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full overflow-hidden", children: [
8205
+ const content = /* @__PURE__ */ jsxRuntime.jsx(chunkIJMKS4XG_cjs.DashboardLayoutProvider, { isOpen: true, children: /* @__PURE__ */ jsxRuntime.jsx(RightSidePanelProvider, { resizable: true, topOffset: HeaderHeight, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full overflow-hidden", children: [
7761
8206
  /* @__PURE__ */ jsxRuntime.jsx(
7762
8207
  SidebarMenuDesktop,
7763
8208
  {
@@ -7784,7 +8229,7 @@ function DashboardLayout({
7784
8229
  ) })
7785
8230
  ] })
7786
8231
  ] }) }) });
7787
- return /* @__PURE__ */ jsxRuntime.jsx(chunkHS6F65WY_cjs.ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkHS6F65WY_cjs.ImpersonationSynchronizer, { children: wrapper ? wrapper(content) : content }) });
8232
+ return /* @__PURE__ */ jsxRuntime.jsx(ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(ImpersonationSynchronizer, { children: wrapper ? wrapper(content) : content }) });
7788
8233
  }
7789
8234
  var DEFAULT_EXCLUDE_PREFIXES = ["/app/project"];
7790
8235
  var withScopedItemId = (menus, itemId, excludePrefixes) => menus.map((menu) => {
@@ -7837,7 +8282,7 @@ var LoginHeader = ({
7837
8282
  }) => {
7838
8283
  const {
7839
8284
  config: { appLogoUrl }
7840
- } = chunkXALNVJQU_cjs.useBlocksAppConfigStore((state) => state);
8285
+ } = chunkSXEXXJHL_cjs.useBlocksAppConfigStore((state) => state);
7841
8286
  const resolveLogo = (variant) => {
7842
8287
  if (!appLogoUrl) return void 0;
7843
8288
  if (typeof appLogoUrl === "string") return appLogoUrl;
@@ -9102,10 +9547,10 @@ var BlocksLoginPage = ({
9102
9547
  ] });
9103
9548
  };
9104
9549
  var LoginPage = () => {
9105
- const config = chunkXALNVJQU_cjs.useBlocksAppConfigStore((state) => state.getConfig());
9106
- const { start, isLoading } = chunkXALNVJQU_cjs.useLogin();
9107
- const { canSignUp } = chunkXALNVJQU_cjs.useSignUpAffordance();
9108
- const { start: startSignUp, isLoading: isSignUpLoading } = chunkXALNVJQU_cjs.useSignUpRedirect();
9550
+ const config = chunkSXEXXJHL_cjs.useBlocksAppConfigStore((state) => state.getConfig());
9551
+ const { start, isLoading } = chunkSXEXXJHL_cjs.useLogin();
9552
+ const { canSignUp } = chunkSXEXXJHL_cjs.useSignUpAffordance();
9553
+ const { start: startSignUp, isLoading: isSignUpLoading } = chunkSXEXXJHL_cjs.useSignUpRedirect();
9109
9554
  return /* @__PURE__ */ jsxRuntime.jsx(
9110
9555
  BlocksLoginPage,
9111
9556
  {
@@ -9220,10 +9665,10 @@ var BentoCard = ({
9220
9665
  );
9221
9666
  var DefaultDoc = () => /* @__PURE__ */ jsxRuntime.jsx(BentoGrid, { children: resources.map((resource) => /* @__PURE__ */ jsxRuntime.jsx(BentoCard, { ...resource }, resource.url)) });
9222
9667
  function useCreateProjectRedirect() {
9223
- const { name } = chunkXALNVJQU_cjs.useBlocksAppConfigStore((state) => state.config);
9668
+ const { name } = chunkSXEXXJHL_cjs.useBlocksAppConfigStore((state) => state.config);
9224
9669
  const navigate = reactRouter.useNavigate();
9225
9670
  const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
9226
- const { isFetching, isReady, redirect } = chunkXALNVJQU_cjs.usePrefetchRedirect({
9671
+ const { isFetching, isReady, redirect } = chunkSXEXXJHL_cjs.usePrefetchRedirect({
9227
9672
  clientId: osApp ? chunkX4YCRWXO_cjs.getRuntimeEnv(osApp.clientId) : "",
9228
9673
  redirectUri: osApp ? chunkX4YCRWXO_cjs.getRuntimeEnv(osApp.redirectUri) : "",
9229
9674
  forwardedTo: "/app/create-project",
@@ -9315,10 +9760,10 @@ function useProjectOverviewRedirect({
9315
9760
  tenantGroupId
9316
9761
  }) {
9317
9762
  const navigate = reactRouter.useNavigate();
9318
- const { name } = chunkXALNVJQU_cjs.useBlocksAppConfigStore((state) => state.config);
9763
+ const { name } = chunkSXEXXJHL_cjs.useBlocksAppConfigStore((state) => state.config);
9319
9764
  const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
9320
9765
  const redirectedRoute = `/app/project/${tenantGroupId}/environments`;
9321
- const { isFetching, isReady, redirect } = chunkXALNVJQU_cjs.usePrefetchRedirect({
9766
+ const { isFetching, isReady, redirect } = chunkSXEXXJHL_cjs.usePrefetchRedirect({
9322
9767
  clientId: osApp ? chunkX4YCRWXO_cjs.getRuntimeEnv(osApp.clientId) : "",
9323
9768
  redirectUri: osApp ? chunkX4YCRWXO_cjs.getRuntimeEnv(osApp.redirectUri) : "",
9324
9769
  forwardedTo: redirectedRoute,
@@ -9355,7 +9800,7 @@ var ProjectActionButton = ({
9355
9800
  isShared,
9356
9801
  canOpen = true
9357
9802
  }) => {
9358
- const { setTenantGroup } = chunkVAKGHXK6_cjs.useProjectStore();
9803
+ const { setTenantGroup } = chunk6GCU5LM7_cjs.useProjectStore();
9359
9804
  const { handleClick, isDisabled, isFetching } = useProjectOverviewRedirect({
9360
9805
  tenantGroupId: project.tenantGroupId
9361
9806
  });
@@ -9394,7 +9839,7 @@ var getEnvironmentLabel = (environment) => environmentOptions.find((option) => o
9394
9839
  var INLINE_LIMIT = 3;
9395
9840
  var ProjectEnvironments = ({ projects }) => {
9396
9841
  const navigate = reactRouter.useNavigate();
9397
- const { setTenantGroup, setSelectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
9842
+ const { setTenantGroup, setSelectedProject } = chunk6GCU5LM7_cjs.useProjectStore();
9398
9843
  const onEnvironmentClick = async (event, project) => {
9399
9844
  event.stopPropagation();
9400
9845
  try {
@@ -9610,7 +10055,7 @@ var ProjectList = ({
9610
10055
  projectGroups,
9611
10056
  showAddProject
9612
10057
  }) => {
9613
- const isMobile = chunkQ7Y32IBM_cjs.useIsMobile();
10058
+ const isMobile = chunkBPJM3L7O_cjs.useIsMobile();
9614
10059
  if (isMobile) {
9615
10060
  return /* @__PURE__ */ jsxRuntime.jsx(
9616
10061
  ProjectMobileList,
@@ -9676,7 +10121,7 @@ function MultiSelect2({
9676
10121
  onChange,
9677
10122
  value: selectedValues
9678
10123
  }) {
9679
- const [buttonRef, popoverWidth] = chunkXALNVJQU_cjs.usePopoverWidth();
10124
+ const [buttonRef, popoverWidth] = chunkSXEXXJHL_cjs.usePopoverWidth();
9680
10125
  const onSelectHandler = (value) => {
9681
10126
  const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
9682
10127
  onChange(nextValues);
@@ -9684,7 +10129,7 @@ function MultiSelect2({
9684
10129
  const onResetHandler = () => {
9685
10130
  onChange([]);
9686
10131
  };
9687
- const isMobile = chunkQ7Y32IBM_cjs.useIsMobile();
10132
+ const isMobile = chunkBPJM3L7O_cjs.useIsMobile();
9688
10133
  return /* @__PURE__ */ jsxRuntime.jsxs(Popover, { children: [
9689
10134
  /* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
9690
10135
  Button,
@@ -9807,7 +10252,7 @@ var SearchInput = ({
9807
10252
  setState(value);
9808
10253
  }, [value]);
9809
10254
  const debounced = React8.useRef(
9810
- chunkVTOD5ZQU_cjs.debounce((val) => {
10255
+ chunkQTSTAWK3_cjs.debounce((val) => {
9811
10256
  onChange(val);
9812
10257
  }, 300)
9813
10258
  ).current;
@@ -9935,7 +10380,7 @@ var DEFAULT_SORT = {
9935
10380
  property: "lastUpdatedDate",
9936
10381
  isDescending: true
9937
10382
  };
9938
- var projectViewStorage = chunkVTOD5ZQU_cjs.createStorage("local", { prefix: "console" });
10383
+ var projectViewStorage = chunkQTSTAWK3_cjs.createStorage("local", { prefix: "console" });
9939
10384
  var VIEW_MODE_KEY = "projectsViewMode";
9940
10385
  var readViewMode = () => {
9941
10386
  const storedValue = projectViewStorage.get(VIEW_MODE_KEY);
@@ -9957,7 +10402,7 @@ var useProjectListState = (projectGroups) => {
9957
10402
  })),
9958
10403
  [projectGroups]
9959
10404
  );
9960
- const searchedGroups = chunkXALNVJQU_cjs.useDebouncedFuseFilter(
10405
+ const searchedGroups = chunkSXEXXJHL_cjs.useDebouncedFuseFilter(
9961
10406
  searchableGroups,
9962
10407
  searchText,
9963
10408
  SEARCH_OPTIONS
@@ -10027,7 +10472,7 @@ var SelfProjectLoading = ({ viewMode }) => {
10027
10472
  ) });
10028
10473
  };
10029
10474
  var SelfProject = ({ canCreateProject = false }) => {
10030
- const { data, isLoading, isFetching } = chunkUVMFL4UV_cjs.useGetProjects({ enabled: true });
10475
+ const { data, isLoading, isFetching } = chunkSXEXXJHL_cjs.useGetProjects({ enabled: true });
10031
10476
  const isPending = isLoading || isFetching;
10032
10477
  const projectGroups = data || [];
10033
10478
  const {
@@ -10130,7 +10575,7 @@ var SelfProject = ({ canCreateProject = false }) => {
10130
10575
  ] });
10131
10576
  };
10132
10577
  var ConsolePage = ({ canCreateProject = false }) => {
10133
- const { resetSelectedProject, resetTenantGroup } = chunkVAKGHXK6_cjs.useProjectStore();
10578
+ const { resetSelectedProject, resetTenantGroup } = chunk6GCU5LM7_cjs.useProjectStore();
10134
10579
  React8.useEffect(() => {
10135
10580
  resetSelectedProject();
10136
10581
  resetTenantGroup();
@@ -10150,7 +10595,7 @@ var ConsolePage = ({ canCreateProject = false }) => {
10150
10595
  var CallbackPage = ({ defaultRedirectUrl }) => {
10151
10596
  const [searchParams] = reactRouter.useSearchParams();
10152
10597
  const hasProcessed = React8.useRef(false);
10153
- const { setAuthenticated } = chunkVAKGHXK6_cjs.useAuthStore();
10598
+ const { setAuthenticated } = chunk6GCU5LM7_cjs.useAuthStore();
10154
10599
  const code = searchParams.get("code");
10155
10600
  const state = searchParams.get("state");
10156
10601
  const forwardTo = searchParams.get("forwardedTo");
@@ -10185,7 +10630,7 @@ var CallbackPage = ({ defaultRedirectUrl }) => {
10185
10630
  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" }) });
10186
10631
  };
10187
10632
  function ProfilePage() {
10188
- const { isLoading, error } = chunkXALNVJQU_cjs.useInitiateRedirect({
10633
+ const { isLoading, error } = chunkSXEXXJHL_cjs.useInitiateRedirect({
10189
10634
  clientId: chunkX4YCRWXO_cjs.getRuntimeEnv("BLOCKS_IAM_CLIENT_ID"),
10190
10635
  redirectUri: chunkX4YCRWXO_cjs.getRuntimeEnv("BLOCKS_IAM_CALLBACK_URL"),
10191
10636
  forwardedTo: "/app/profile"
@@ -10424,8 +10869,8 @@ var useSwaggerEndpoints = (serviceName, {
10424
10869
  enabled = true,
10425
10870
  staleTime = 5 * 60 * 1e3
10426
10871
  } = {}) => {
10427
- const baseUrl = serviceName ? chunkVTOD5ZQU_cjs.getServiceBaseUrl(serviceName) : void 0;
10428
- const swaggerUrl = serviceName ? chunkVTOD5ZQU_cjs.getServiceSwaggerUrl(serviceName) : void 0;
10872
+ const baseUrl = serviceName ? chunkQTSTAWK3_cjs.getServiceBaseUrl(serviceName) : void 0;
10873
+ const swaggerUrl = serviceName ? chunkQTSTAWK3_cjs.getServiceSwaggerUrl(serviceName) : void 0;
10429
10874
  const { data, isLoading, isError, error } = reactQuery.useQuery({
10430
10875
  queryKey: ["swagger-endpoints", swaggerUrl],
10431
10876
  queryFn: () => {
@@ -10463,8 +10908,8 @@ var ConfirmationModal = ({
10463
10908
  ] })
10464
10909
  ] });
10465
10910
  var DashboardOverview = () => {
10466
- const { name } = chunkXALNVJQU_cjs.useBlocksAppConfigStore((state) => state.config);
10467
- const { data, isFetching } = chunkUVMFL4UV_cjs.useGetProject();
10911
+ const { name } = chunkSXEXXJHL_cjs.useBlocksAppConfigStore((state) => state.config);
10912
+ const { data, isFetching } = chunkSXEXXJHL_cjs.useGetProject();
10468
10913
  const {
10469
10914
  endpoints,
10470
10915
  isLoading: isLoadingEndpoints,
@@ -10542,8 +10987,8 @@ var ProjectDetail = ({
10542
10987
  )?.label
10543
10988
  }
10544
10989
  ) }),
10545
- /* @__PURE__ */ jsxRuntime.jsx(ProjectDetailItem, { label: "Last updated Date", children: project?.lastUpdatedDate && chunkVTOD5ZQU_cjs.formatFullDate(new Date(project.lastUpdatedDate)) }),
10546
- /* @__PURE__ */ jsxRuntime.jsx(ProjectDetailItem, { label: "Created Date", children: project?.createdDate && chunkVTOD5ZQU_cjs.formatFullDate(new Date(project.createdDate)) })
10990
+ /* @__PURE__ */ jsxRuntime.jsx(ProjectDetailItem, { label: "Last updated Date", children: project?.lastUpdatedDate && chunkQTSTAWK3_cjs.formatFullDate(new Date(project.lastUpdatedDate)) }),
10991
+ /* @__PURE__ */ jsxRuntime.jsx(ProjectDetailItem, { label: "Created Date", children: project?.createdDate && chunkQTSTAWK3_cjs.formatFullDate(new Date(project.createdDate)) })
10547
10992
  ] })
10548
10993
  }
10549
10994
  );
@@ -10558,11 +11003,11 @@ function ProjectList2({
10558
11003
  }) {
10559
11004
  const navigate = reactRouter.useNavigate();
10560
11005
  const { pathname } = reactRouter.useLocation();
10561
- const { data: projectGroups = [], isLoading } = chunkUVMFL4UV_cjs.useGetProjects({
11006
+ const { data: projectGroups = [], isLoading } = chunkSXEXXJHL_cjs.useGetProjects({
10562
11007
  enabled: true
10563
11008
  });
10564
- const { selectedProject, setSelectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
10565
- const { data: projectData } = chunkUVMFL4UV_cjs.useGetProject();
11009
+ const { selectedProject, setSelectedProject } = chunk6GCU5LM7_cjs.useProjectStore();
11010
+ const { data: projectData } = chunkSXEXXJHL_cjs.useGetProject();
10566
11011
  const pendingProjectRef = React8.useRef(null);
10567
11012
  const redirectRegexMap = React8.useMemo(
10568
11013
  () => Object.entries(redirectPaths).reduce(
@@ -10711,7 +11156,7 @@ var SetCustomDomainDialog = ({
10711
11156
  projectKey,
10712
11157
  projectEnv
10713
11158
  }) => {
10714
- const { mutateAsync, isPending } = chunkUVMFL4UV_cjs.useUpdateRepositories();
11159
+ const { mutateAsync, isPending } = chunkSXEXXJHL_cjs.useUpdateRepositories();
10715
11160
  const verifiedDomains = React8.useMemo(
10716
11161
  () => Array.from(
10717
11162
  new Set(domains.filter((d) => d.isDomainVerified).map((d) => d.domain))
@@ -10738,14 +11183,14 @@ var SetCustomDomainDialog = ({
10738
11183
  ]
10739
11184
  });
10740
11185
  if (res.isSuccess) {
10741
- chunkVTOD5ZQU_cjs.showSuccessToast({ description: "Custom domain updated successfully" });
11186
+ chunkQTSTAWK3_cjs.showSuccessToast({ description: "Custom domain updated successfully" });
10742
11187
  onOpenChange(false);
10743
11188
  } else {
10744
- chunkVTOD5ZQU_cjs.showErrorToast({ errors: res.errors });
11189
+ chunkQTSTAWK3_cjs.showErrorToast({ errors: res.errors });
10745
11190
  }
10746
11191
  } catch (error) {
10747
11192
  if (error && typeof error === "object" && "errors" in error) {
10748
- chunkVTOD5ZQU_cjs.showErrorToast({ errors: error.errors });
11193
+ chunkQTSTAWK3_cjs.showErrorToast({ errors: error.errors });
10749
11194
  }
10750
11195
  }
10751
11196
  };
@@ -10794,7 +11239,7 @@ var buildColumns = (onSet) => [
10794
11239
  cell: ({ row }) => {
10795
11240
  const repo = row.original;
10796
11241
  const isDefaultDate = repo.lastDeploymentDate === "0001-01-01T00:00:00";
10797
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-medium-emphasis", children: !repo.lastDeploymentDate || isDefaultDate ? "Not deployed" : chunkVTOD5ZQU_cjs.formatFullDate(new Date(repo.lastDeploymentDate)) });
11242
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-medium-emphasis", children: !repo.lastDeploymentDate || isDefaultDate ? "Not deployed" : chunkQTSTAWK3_cjs.formatFullDate(new Date(repo.lastDeploymentDate)) });
10798
11243
  }
10799
11244
  }),
10800
11245
  columnHelper.display({
@@ -10895,7 +11340,7 @@ var ProjectRepoList = ({
10895
11340
  data: envRepositoriesResponse,
10896
11341
  isLoading: isLoadingEnvRepos,
10897
11342
  isFetching: isFetchingEnvRepos
10898
- } = chunkUVMFL4UV_cjs.useGetEnvRepositories(project?.tenantId || "");
11343
+ } = chunkSXEXXJHL_cjs.useGetEnvRepositories(project?.tenantId || "");
10899
11344
  if (isLoading || isLoadingEnvRepos || isFetchingEnvRepos) {
10900
11345
  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: [
10901
11346
  /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-5 w-1/2" }),
@@ -10925,7 +11370,7 @@ var ProjectActions = ({
10925
11370
  createdBy,
10926
11371
  isFetching = false
10927
11372
  }) => {
10928
- const { user } = chunkVAKGHXK6_cjs.useAuthStore();
11373
+ const { user } = chunk6GCU5LM7_cjs.useAuthStore();
10929
11374
  const isOwner = createdBy === user?.sub;
10930
11375
  if (isFetching) {
10931
11376
  return /* @__PURE__ */ jsxRuntime.jsx(ProjectActionsSkeleton, {});
@@ -10995,7 +11440,7 @@ var EditProjectForm = ({
10995
11440
  onAfterSubmit
10996
11441
  }) => {
10997
11442
  const queryClient = reactQuery.useQueryClient();
10998
- const { mutateAsync, isPending } = chunkUVMFL4UV_cjs.useUpdateTenantGroup();
11443
+ const { mutateAsync, isPending } = chunkSXEXXJHL_cjs.useUpdateTenantGroup();
10999
11444
  const form = reactHookForm.useForm({
11000
11445
  resolver: zod$1.zodResolver(editProjectFormSchema),
11001
11446
  defaultValues: {
@@ -11011,7 +11456,7 @@ var EditProjectForm = ({
11011
11456
  tenantGroupId
11012
11457
  });
11013
11458
  if (res.isSuccess) {
11014
- chunkVTOD5ZQU_cjs.showSuccessToast({
11459
+ chunkQTSTAWK3_cjs.showSuccessToast({
11015
11460
  title: "Project updated",
11016
11461
  description: "Project name updated successfully"
11017
11462
  });
@@ -11019,11 +11464,11 @@ var EditProjectForm = ({
11019
11464
  form.reset();
11020
11465
  onAfterSubmit();
11021
11466
  } else {
11022
- chunkVTOD5ZQU_cjs.showErrorToast({ errors: res.errors });
11467
+ chunkQTSTAWK3_cjs.showErrorToast({ errors: res.errors });
11023
11468
  }
11024
11469
  } catch (error) {
11025
- if (chunkVTOD5ZQU_cjs.isErrorWithErrors(error)) {
11026
- chunkVTOD5ZQU_cjs.showErrorToast({ errors: error.errors });
11470
+ if (chunkQTSTAWK3_cjs.isErrorWithErrors(error)) {
11471
+ chunkQTSTAWK3_cjs.showErrorToast({ errors: error.errors });
11027
11472
  }
11028
11473
  }
11029
11474
  };
@@ -11085,7 +11530,7 @@ var EditProjectDialog = ({
11085
11530
  };
11086
11531
  function EditProject() {
11087
11532
  const [openEditDialog, setOpenEditDialog] = React8.useState(false);
11088
- const { selectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
11533
+ const { selectedProject } = chunk6GCU5LM7_cjs.useProjectStore();
11089
11534
  const { tenantGroupId, name } = selectedProject || {};
11090
11535
  return /* @__PURE__ */ jsxRuntime.jsxs(Dialog, { open: openEditDialog, onOpenChange: setOpenEditDialog, children: [
11091
11536
  /* @__PURE__ */ jsxRuntime.jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", size: "sm", className: "flex items-center gap-2", children: [
@@ -11131,8 +11576,8 @@ function SidebarMobileView({
11131
11576
  navigationMenus
11132
11577
  }) {
11133
11578
  const [open, setOpen] = React8.useState(false);
11134
- const { appLightLogo, appDarkLogo } = chunkXALNVJQU_cjs.useLogo();
11135
- const allowedMenu = chunkQ7Y32IBM_cjs.useFilteredMenus(navigationMenus);
11579
+ const { appLightLogo, appDarkLogo } = chunkSXEXXJHL_cjs.useLogo();
11580
+ const allowedMenu = chunkBPJM3L7O_cjs.useFilteredMenus(navigationMenus);
11136
11581
  return /* @__PURE__ */ jsxRuntime.jsxs(Sheet, { open, onOpenChange: setOpen, children: [
11137
11582
  /* @__PURE__ */ jsxRuntime.jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", size: "icon", className: "shrink-0", children: [
11138
11583
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Menu, { className: "h-5 w-5" }),
@@ -11180,11 +11625,11 @@ function SidebarMenuDesktop({
11180
11625
  redirectPaths,
11181
11626
  navigationMenus
11182
11627
  }) {
11183
- const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkZVGCCTNK_cjs.SidebarContext);
11184
- const { appLightLogo, appDarkLogo } = chunkXALNVJQU_cjs.useLogo();
11185
- const icon = chunkXALNVJQU_cjs.useIcon();
11186
- const allowedMenu = chunkQ7Y32IBM_cjs.useFilteredMenus(navigationMenus);
11187
- const { isActivePath: isProjectOverviewRoute } = chunkQ7Y32IBM_cjs.useIsActiveMenu("/app/project");
11628
+ const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkIJMKS4XG_cjs.SidebarContext);
11629
+ const { appLightLogo, appDarkLogo } = chunkSXEXXJHL_cjs.useLogo();
11630
+ const icon = chunkSXEXXJHL_cjs.useIcon();
11631
+ const allowedMenu = chunkBPJM3L7O_cjs.useFilteredMenus(navigationMenus);
11632
+ const { isActivePath: isProjectOverviewRoute } = chunkBPJM3L7O_cjs.useIsActiveMenu("/app/project");
11188
11633
  return /* @__PURE__ */ jsxRuntime.jsxs(
11189
11634
  "div",
11190
11635
  {
@@ -11310,23 +11755,23 @@ var ErrorBoundary = class extends React8.Component {
11310
11755
  };
11311
11756
  var ArchiveProject = () => {
11312
11757
  const navigate = reactRouter.useNavigate();
11313
- const projectKey = chunkVAKGHXK6_cjs.useProjectStore().selectedProject?.tenantId || "";
11314
- const { mutateAsync, isPending } = chunkUVMFL4UV_cjs.useDisableProject({ projectKey });
11758
+ const projectKey = chunk6GCU5LM7_cjs.useProjectStore().selectedProject?.tenantId || "";
11759
+ const { mutateAsync, isPending } = chunkSXEXXJHL_cjs.useDisableProject({ projectKey });
11315
11760
  const onClickHandler = async () => {
11316
11761
  try {
11317
11762
  const res = await mutateAsync();
11318
11763
  if (res.isSuccess) {
11319
- chunkVTOD5ZQU_cjs.showSuccessToast({
11764
+ chunkQTSTAWK3_cjs.showSuccessToast({
11320
11765
  title: "Project delete",
11321
11766
  description: "Successfully deleted"
11322
11767
  });
11323
11768
  navigate("/app/console");
11324
11769
  } else {
11325
- chunkVTOD5ZQU_cjs.showErrorToast({ errors: res.errors });
11770
+ chunkQTSTAWK3_cjs.showErrorToast({ errors: res.errors });
11326
11771
  }
11327
11772
  } catch (error) {
11328
- if (chunkVTOD5ZQU_cjs.isErrorWithErrors(error)) {
11329
- chunkVTOD5ZQU_cjs.showErrorToast({ errors: error.errors });
11773
+ if (chunkQTSTAWK3_cjs.isErrorWithErrors(error)) {
11774
+ chunkQTSTAWK3_cjs.showErrorToast({ errors: error.errors });
11330
11775
  }
11331
11776
  }
11332
11777
  };
@@ -12109,7 +12554,7 @@ function InfoTooltip({ content, side = "top" }) {
12109
12554
  ] });
12110
12555
  }
12111
12556
  function DateRange({ label, value, onChange }) {
12112
- const isMobile = chunkQ7Y32IBM_cjs.useIsMobile();
12557
+ const isMobile = chunkBPJM3L7O_cjs.useIsMobile();
12113
12558
  const [open, setOpen] = React8.useState(false);
12114
12559
  const [date, setDate] = React8.useState(value);
12115
12560
  React8.useEffect(() => {
@@ -12152,10 +12597,10 @@ function DateRange({ label, value, onChange }) {
12152
12597
  className: "hidden h-4 sm:mx-2 sm:block"
12153
12598
  }
12154
12599
  ),
12155
- chunkVTOD5ZQU_cjs.formatDate(date.from, true),
12600
+ chunkQTSTAWK3_cjs.formatDate(date.from, true),
12156
12601
  date.to && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
12157
12602
  " - ",
12158
- chunkVTOD5ZQU_cjs.formatDate(date.to, true)
12603
+ chunkQTSTAWK3_cjs.formatDate(date.to, true)
12159
12604
  ] })
12160
12605
  ] })
12161
12606
  ] }) }) }),
@@ -12202,7 +12647,7 @@ var DropdownSearchInput = ({
12202
12647
  setState(value);
12203
12648
  }, [value]);
12204
12649
  const debounced = React8.useRef(
12205
- chunkVTOD5ZQU_cjs.debounce((val) => {
12650
+ chunkQTSTAWK3_cjs.debounce((val) => {
12206
12651
  onChange(val);
12207
12652
  }, 300)
12208
12653
  ).current;
@@ -12281,8 +12726,8 @@ var ClearButton = ({ onClear }) => {
12281
12726
  };
12282
12727
  function Radio({ label, options, onChange, value }) {
12283
12728
  const [search, setSearch] = React8.useState("");
12284
- const [buttonRef, popoverWidth] = chunkXALNVJQU_cjs.usePopoverWidth();
12285
- const isMobile = chunkQ7Y32IBM_cjs.useIsMobile();
12729
+ const [buttonRef, popoverWidth] = chunkSXEXXJHL_cjs.usePopoverWidth();
12730
+ const isMobile = chunkBPJM3L7O_cjs.useIsMobile();
12286
12731
  const selected = React8.useMemo(
12287
12732
  () => options.find((item) => item.value === value) || null,
12288
12733
  [options, value]
@@ -12678,7 +13123,7 @@ var FilterToolbar = ({
12678
13123
  }
12679
13124
  );
12680
13125
  });
12681
- const showReset = !hideGlobalResetButton && !chunkVTOD5ZQU_cjs.deepEqual(initialValuesRef.current, values);
13126
+ const showReset = !hideGlobalResetButton && !chunkQTSTAWK3_cjs.deepEqual(initialValuesRef.current, values);
12682
13127
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
12683
13128
  /* @__PURE__ */ jsxRuntime.jsx(
12684
13129
  FilterToolbarDesktopView,
@@ -12951,10 +13396,12 @@ exports.AlertDialogPortal = AlertDialogPortal;
12951
13396
  exports.AlertDialogTitle = AlertDialogTitle;
12952
13397
  exports.AlertDialogTrigger = AlertDialogTrigger;
12953
13398
  exports.AlertTitle = AlertTitle;
13399
+ exports.AppLoadingSpinner = AppLoadingSpinner;
12954
13400
  exports.AppSwitcher = AppSwitcher;
12955
13401
  exports.ArchiveProject = ArchiveProject;
12956
13402
  exports.AspectRatio = AspectRatio;
12957
13403
  exports.AuthLayout = AuthLayout;
13404
+ exports.AuthResolver = AuthResolver;
12958
13405
  exports.Avatar = Avatar;
12959
13406
  exports.AvatarFallback = AvatarFallback;
12960
13407
  exports.AvatarImage = AvatarImage;
@@ -13091,6 +13538,9 @@ exports.FormMessage = FormMessage;
13091
13538
  exports.HoverCard = HoverCard;
13092
13539
  exports.HoverCardContent = HoverCardContent;
13093
13540
  exports.HoverCardTrigger = HoverCardTrigger;
13541
+ exports.ImpersonationChecker = ImpersonationChecker;
13542
+ exports.ImpersonationSynchronizer = ImpersonationSynchronizer;
13543
+ exports.ImpersonationTerminator = ImpersonationTerminator;
13094
13544
  exports.ImportFileModalContent = ImportFileModalContent;
13095
13545
  exports.InfiniteScroll = InfiniteScroll;
13096
13546
  exports.InfiniteScroller = InfiniteScroller;
@@ -13158,6 +13608,8 @@ exports.ProjectList = ProjectList2;
13158
13608
  exports.ProjectListRowLoadingSkeleton = ProjectListRowLoadingSkeleton;
13159
13609
  exports.ProjectOverview = ProjectOverview;
13160
13610
  exports.ProjectRepoList = ProjectRepoList;
13611
+ exports.ProtectedGuard = ProtectedGuard;
13612
+ exports.PublicGuard = PublicGuard;
13161
13613
  exports.PublicLayout = PublicLayout;
13162
13614
  exports.RadioGroup = RadioGroup4;
13163
13615
  exports.RadioGroupItem = RadioGroupItem;
@@ -13283,5 +13735,5 @@ exports.usePaginationQueryParams = usePaginationQueryParams;
13283
13735
  exports.useRightSidePanel = useRightSidePanel;
13284
13736
  exports.useSortQueryParams = useSortQueryParams;
13285
13737
  exports.useWizardStepper = useWizardStepper;
13286
- //# sourceMappingURL=chunk-6DQTH7RD.cjs.map
13287
- //# sourceMappingURL=chunk-6DQTH7RD.cjs.map
13738
+ //# sourceMappingURL=chunk-YFTRLNLF.cjs.map
13739
+ //# sourceMappingURL=chunk-YFTRLNLF.cjs.map