@seliseblocks/genesis-os 4.5.1 → 4.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkXJ6DPUCV_cjs = require('./chunk-XJ6DPUCV.cjs');
4
- var chunkOD4JGU6N_cjs = require('./chunk-OD4JGU6N.cjs');
4
+ var chunkRRNXA47A_cjs = require('./chunk-RRNXA47A.cjs');
5
5
  var chunkAN5A73D2_cjs = require('./chunk-AN5A73D2.cjs');
6
6
  var chunkYMIZYACJ_cjs = require('./chunk-YMIZYACJ.cjs');
7
7
  var chunk2MP66EX3_cjs = require('./chunk-2MP66EX3.cjs');
@@ -1537,7 +1537,7 @@ function RightSidePanelProvider({
1537
1537
  const close = React8__namespace.useCallback(() => {
1538
1538
  setOpen(false);
1539
1539
  }, [setOpen]);
1540
- chunkOD4JGU6N_cjs.useKeyboardShortcut(shortcut, toggle);
1540
+ chunkRRNXA47A_cjs.useKeyboardShortcut(shortcut, toggle);
1541
1541
  React8__namespace.useEffect(() => {
1542
1542
  if (!syncHash || isControlled || typeof window === "undefined") return;
1543
1543
  const handleHashChange = () => {
@@ -3522,7 +3522,7 @@ function MultiSelect({
3522
3522
  onChange,
3523
3523
  value: selectedValues
3524
3524
  }) {
3525
- const [buttonRef, popoverWidth] = chunkOD4JGU6N_cjs.usePopoverWidth();
3525
+ const [buttonRef, popoverWidth] = chunkRRNXA47A_cjs.usePopoverWidth();
3526
3526
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
3527
3527
  const onSelectHandler = (value) => {
3528
3528
  const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
@@ -6745,7 +6745,7 @@ var filteredAppSwitcherData = APP_SWITCHER_DATA.filter((app) => {
6745
6745
  });
6746
6746
  var INITIATE_URL_MAX_AGE_MS = 5 * 60 * 1e3;
6747
6747
  var initiateQueryKey = (clientId, redirectUri, forwardedTo) => ["idp-initiate", clientId, redirectUri, forwardedTo];
6748
- var isRecentlyRejected = (state, now) => state?.status === "error" && state.error instanceof chunkOD4JGU6N_cjs.InitiateError && state.error.status >= 400 && state.error.status < 500 && now - state.errorUpdatedAt < INITIATE_URL_MAX_AGE_MS;
6748
+ var isRecentlyRejected = (state, now) => state?.status === "error" && state.error instanceof chunkRRNXA47A_cjs.InitiateError && state.error.status >= 400 && state.error.status < 500 && now - state.errorUpdatedAt < INITIATE_URL_MAX_AGE_MS;
6749
6749
  function useAppRedirectUrls({
6750
6750
  open,
6751
6751
  apps,
@@ -6769,7 +6769,7 @@ function useAppRedirectUrls({
6769
6769
  queries: requests.map(
6770
6770
  ({ clientId, redirectUri, forwardedTo, queryKey }) => ({
6771
6771
  queryKey,
6772
- queryFn: ({ signal }) => chunkOD4JGU6N_cjs.initiateService.fetchRedirectUrl(
6772
+ queryFn: ({ signal }) => chunkRRNXA47A_cjs.initiateService.fetchRedirectUrl(
6773
6773
  { clientId, redirectUri, forwardedTo },
6774
6774
  signal
6775
6775
  ),
@@ -6815,7 +6815,7 @@ function useAppRedirectUrls({
6815
6815
  }
6816
6816
  var AppSwitcher = ({ forwardedTo }) => {
6817
6817
  const [open, setOpen] = React8.useState(false);
6818
- const config = chunkOD4JGU6N_cjs.useBlocksAppConfigStore((state) => state.getConfig());
6818
+ const config = chunkRRNXA47A_cjs.useBlocksAppConfigStore((state) => state.getConfig());
6819
6819
  const filteredApps = React8.useMemo(
6820
6820
  () => filteredAppSwitcherData.filter((app) => app.id !== config.name),
6821
6821
  [config.name]
@@ -6865,7 +6865,7 @@ function ThemeSwitcher({
6865
6865
  showChevron = true
6866
6866
  } = {}) {
6867
6867
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
6868
- const { theme, setTheme } = chunkOD4JGU6N_cjs.useTheme();
6868
+ const { theme, setTheme } = chunkRRNXA47A_cjs.useTheme();
6869
6869
  const { Icon: ThemeIcon } = OPTIONS[theme];
6870
6870
  return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
6871
6871
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
@@ -6977,14 +6977,14 @@ function UserAvatar({ size = "sm" }) {
6977
6977
  }
6978
6978
  function UserDropdownMenu() {
6979
6979
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
6980
- const { name } = chunkOD4JGU6N_cjs.useBlocksAppConfigStore((state) => state.config);
6980
+ const { name } = chunkRRNXA47A_cjs.useBlocksAppConfigStore((state) => state.config);
6981
6981
  const { data } = useGetUserInfo();
6982
6982
  const userData = data?.data;
6983
- const { isPending, mutateAsync } = chunkOD4JGU6N_cjs.useLogout();
6983
+ const { isPending, mutateAsync } = chunkRRNXA47A_cjs.useLogout();
6984
6984
  const { resetProjectStore } = chunkU2LA7LBX_cjs.useProjectStore();
6985
6985
  const { setUnAuthenticated, clearTokens } = chunkU2LA7LBX_cjs.useAuthStore();
6986
6986
  const { resetSelectedLanguages } = chunkRO55MFZA_cjs.useLanguageViewStore();
6987
- const { data: myOrgsData, isLoading: isOrgsLoading } = chunkOD4JGU6N_cjs.useGetMyOrganizations();
6987
+ const { data: myOrgsData, isLoading: isOrgsLoading } = chunkRRNXA47A_cjs.useGetMyOrganizations();
6988
6988
  const fullName = [userData?.firstName, userData?.lastName].filter(Boolean).join(" ") || "\u2014";
6989
6989
  const email = userData?.email || "";
6990
6990
  const roles = Object.values(userData?.roles || {}).flat();
@@ -7114,7 +7114,7 @@ function UserDropdownMenu() {
7114
7114
  }
7115
7115
  function LanguageSelector({ className } = {}) {
7116
7116
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
7117
- const { changeLanguage } = chunkOD4JGU6N_cjs.useLanguageSwitcher();
7117
+ const { changeLanguage } = chunkRRNXA47A_cjs.useLanguageSwitcher();
7118
7118
  const language = chunkFFMX4JUU_cjs.useDocumentLanguage();
7119
7119
  const languages = chunkFFMX4JUU_cjs.useLanguagesStore((state) => state.languages);
7120
7120
  if (languages.length < 2) return null;
@@ -7257,7 +7257,7 @@ var NotificationListenerService = class {
7257
7257
  if (refreshLogin && navigator.onLine === false) return;
7258
7258
  try {
7259
7259
  if (refreshLogin)
7260
- await refreshLoginCall(chunkOD4JGU6N_cjs.notificationService.getNotifications(1, 1));
7260
+ await refreshLoginCall(chunkRRNXA47A_cjs.notificationService.getNotifications(1, 1));
7261
7261
  if (!this.wanted) return;
7262
7262
  await this.connection.start();
7263
7263
  this.attempt = 0;
@@ -7282,7 +7282,7 @@ var notificationListenerService = new NotificationListenerService();
7282
7282
 
7283
7283
  // src/components/common/notification/use-notification-socket.ts
7284
7284
  function useNotificationSocket() {
7285
- const { data: configData } = chunkOD4JGU6N_cjs.useGetBlocksNotificationConfig(0, 100);
7285
+ const { data: configData } = chunkRRNXA47A_cjs.useGetBlocksNotificationConfig(0, 100);
7286
7286
  const queryClient = reactQuery.useQueryClient();
7287
7287
  notificationListenerService.connect();
7288
7288
  React8.useEffect(() => {
@@ -7297,7 +7297,7 @@ function useNotificationSocket() {
7297
7297
  notificationListenerService.connection.on(
7298
7298
  config.notifyMethod,
7299
7299
  (message) => {
7300
- chunkOD4JGU6N_cjs.notificationService.getNotificationConfig(config, message);
7300
+ chunkRRNXA47A_cjs.notificationService.getNotificationConfig(config, message);
7301
7301
  try {
7302
7302
  const notice = typeof message === "string" ? JSON.parse(message) : message;
7303
7303
  const denom = JSON.parse(
@@ -7321,12 +7321,12 @@ function useNotificationFeed(open) {
7321
7321
  const [notifications, setNotifications] = React8.useState([]);
7322
7322
  const [hasMore, setHasMore] = React8.useState(true);
7323
7323
  const listRef = React8.useRef(null);
7324
- const { data, isLoading, isFetching } = chunkOD4JGU6N_cjs.useGetNotifications(
7324
+ const { data, isLoading, isFetching } = chunkRRNXA47A_cjs.useGetNotifications(
7325
7325
  pageNumber,
7326
7326
  PAGE_SIZE
7327
7327
  );
7328
- const markAsRead = chunkOD4JGU6N_cjs.useMarkAsRead();
7329
- const markAllAsRead = chunkOD4JGU6N_cjs.useMarkAllAsRead();
7328
+ const markAsRead = chunkRRNXA47A_cjs.useMarkAsRead();
7329
+ const markAllAsRead = chunkRRNXA47A_cjs.useMarkAllAsRead();
7330
7330
  React8.useEffect(() => {
7331
7331
  if (!data?.notifications) return;
7332
7332
  setNotifications((prev) => {
@@ -7646,9 +7646,26 @@ function getNotificationLink(denormalizedPayload) {
7646
7646
  const build = Object.hasOwn(LINK_BUILDERS, event) ? LINK_BUILDERS[event] : void 0;
7647
7647
  return build ? build(payload) : null;
7648
7648
  }
7649
+ var MERGED_INTO_OS = {
7650
+ "blocks-logic": "BLOCKS_LOGIC_BASE_URL"
7651
+ };
7652
+ var isServedHere = (url) => {
7653
+ if (!url) return true;
7654
+ if (typeof window === "undefined") return false;
7655
+ try {
7656
+ return new URL(url, window.location.origin).origin === window.location.origin;
7657
+ } catch {
7658
+ return false;
7659
+ }
7660
+ };
7661
+ var opensIn = (linkApp, currentApp) => {
7662
+ if (linkApp === currentApp) return true;
7663
+ const areaKey = MERGED_INTO_OS[linkApp];
7664
+ return currentApp === "blocks-os" && !!areaKey && isServedHere(chunkDVSDWHSQ_cjs.getRuntimeEnv(areaKey));
7665
+ };
7649
7666
  function getNotificationHref(denormalizedPayload, currentApp, projectItemId) {
7650
7667
  const link = getNotificationLink(denormalizedPayload);
7651
- if (link?.app !== currentApp) return null;
7668
+ if (!link || !opensIn(link.app, currentApp)) return null;
7652
7669
  if (!link.scoped) return link.path;
7653
7670
  return projectItemId ? `/app/${encodeURIComponent(projectItemId)}/${link.path}` : null;
7654
7671
  }
@@ -7657,7 +7674,7 @@ function getNotificationHref(denormalizedPayload, currentApp, projectItemId) {
7657
7674
  function useNotificationOpen() {
7658
7675
  const navigate = reactRouter.useNavigate();
7659
7676
  const { itemId } = reactRouter.useParams();
7660
- const app = chunkOD4JGU6N_cjs.useBlocksAppConfigStore((state) => state.config.name);
7677
+ const app = chunkRRNXA47A_cjs.useBlocksAppConfigStore((state) => state.config.name);
7661
7678
  const getHref = React8.useCallback(
7662
7679
  (notification) => getNotificationHref(notification.denormalizedPayload, app, itemId),
7663
7680
  [app, itemId]
@@ -7715,7 +7732,7 @@ function ConsoleHeader() {
7715
7732
  window.addEventListener("scroll", handleScroll);
7716
7733
  return () => window.removeEventListener("scroll", handleScroll);
7717
7734
  }, []);
7718
- const { appLightLogo, appDarkLogo } = chunkOD4JGU6N_cjs.useLogo();
7735
+ const { appLightLogo, appDarkLogo } = chunkRRNXA47A_cjs.useLogo();
7719
7736
  return /* @__PURE__ */ jsxRuntime.jsx(
7720
7737
  "div",
7721
7738
  {
@@ -7928,7 +7945,7 @@ var EnvironmentCard = ({
7928
7945
  }) => {
7929
7946
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
7930
7947
  const { setSelectedProject, setTenantGroup } = chunkU2LA7LBX_cjs.useProjectStore();
7931
- const { mutateAsync } = chunkOD4JGU6N_cjs.useStartImpersonation();
7948
+ const { mutateAsync } = chunkRRNXA47A_cjs.useStartImpersonation();
7932
7949
  const navigate = reactRouter.useNavigate();
7933
7950
  const handleCardClick = async () => {
7934
7951
  try {
@@ -7983,11 +8000,11 @@ function EnvironmentList({
7983
8000
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
7984
8001
  const navigate = reactRouter.useNavigate();
7985
8002
  const { pathname } = reactRouter.useLocation();
7986
- const { data: projectGroups = [], isLoading } = chunkOD4JGU6N_cjs.useGetProjects({
8003
+ const { data: projectGroups = [], isLoading } = chunkRRNXA47A_cjs.useGetProjects({
7987
8004
  enabled: true
7988
8005
  });
7989
8006
  const { selectedProject, setSelectedProject } = chunkU2LA7LBX_cjs.useProjectStore();
7990
- const { data: projectData } = chunkOD4JGU6N_cjs.useGetProject();
8007
+ const { data: projectData } = chunkRRNXA47A_cjs.useGetProject();
7991
8008
  const pendingProjectRef = React8.useRef(null);
7992
8009
  const redirectRegexMap = React8.useMemo(
7993
8010
  () => Object.entries(redirectPaths).reduce(
@@ -8297,10 +8314,10 @@ var useLiveOwnerProbe = ({
8297
8314
  var ImpersonationChecker = ({
8298
8315
  children
8299
8316
  }) => {
8300
- const { data } = chunkOD4JGU6N_cjs.useImpersonationStatusChecker();
8317
+ const { data } = chunkRRNXA47A_cjs.useImpersonationStatusChecker();
8301
8318
  const { setImpersonation, isInitialized, setInitialized } = chunkRO55MFZA_cjs.useImpersonateStore();
8302
- chunkOD4JGU6N_cjs.useSessionTenantGuard();
8303
- chunkOD4JGU6N_cjs.useStatusFirstOnTabReturn();
8319
+ chunkRRNXA47A_cjs.useSessionTenantGuard();
8320
+ chunkRRNXA47A_cjs.useStatusFirstOnTabReturn();
8304
8321
  React8.useEffect(() => {
8305
8322
  if (!data) return;
8306
8323
  setImpersonation(
@@ -8360,8 +8377,8 @@ function ImpersonationTerminator({
8360
8377
  detachedTenantId,
8361
8378
  setDetached
8362
8379
  } = chunkRO55MFZA_cjs.useImpersonateStore();
8363
- const { mutateAsync } = chunkOD4JGU6N_cjs.useStopImpersonation();
8364
- const recordClaimedTenant = chunkOD4JGU6N_cjs.useRecordClaimedTenant();
8380
+ const { mutateAsync } = chunkRRNXA47A_cjs.useStopImpersonation();
8381
+ const recordClaimedTenant = chunkRRNXA47A_cjs.useRecordClaimedTenant();
8365
8382
  const { projects } = chunkU2LA7LBX_cjs.useProjectStore();
8366
8383
  const isTriggering = React8.useRef(false);
8367
8384
  const [isTerminating, setIsTerminating] = React8.useState(false);
@@ -8390,7 +8407,7 @@ function ImpersonationTerminator({
8390
8407
  null
8391
8408
  );
8392
8409
  const { t } = chunkFFMX4JUU_cjs.useT(GENESIS_SHARED_MODULE);
8393
- const signOut = chunkOD4JGU6N_cjs.useSignOut();
8410
+ const signOut = chunkRRNXA47A_cjs.useSignOut();
8394
8411
  React8.useEffect(() => {
8395
8412
  if (!isImpersonated) setReturnFailure(null);
8396
8413
  }, [isImpersonated]);
@@ -8491,9 +8508,9 @@ function ImpersonationSynchronizer({
8491
8508
  setDetached
8492
8509
  } = chunkRO55MFZA_cjs.useImpersonateStore();
8493
8510
  const { t } = chunkFFMX4JUU_cjs.useT(GENESIS_SHARED_MODULE);
8494
- const { mutateAsync } = chunkOD4JGU6N_cjs.useStartImpersonation();
8495
- const recordClaimedTenant = chunkOD4JGU6N_cjs.useRecordClaimedTenant();
8496
- const { data: _data } = chunkOD4JGU6N_cjs.useGetProjects({ enabled: true });
8511
+ const { mutateAsync } = chunkRRNXA47A_cjs.useStartImpersonation();
8512
+ const recordClaimedTenant = chunkRRNXA47A_cjs.useRecordClaimedTenant();
8513
+ const { data: _data } = chunkRRNXA47A_cjs.useGetProjects({ enabled: true });
8497
8514
  const { selectedProject, setSelectedProject, projects, setTenantGroup } = chunkU2LA7LBX_cjs.useProjectStore();
8498
8515
  const isTriggering = React8.useRef(false);
8499
8516
  const [isImpersonating, setIsImpersonating] = React8.useState(false);
@@ -8528,7 +8545,7 @@ function ImpersonationSynchronizer({
8528
8545
  ]);
8529
8546
  const getImpersonatedProject = async () => {
8530
8547
  try {
8531
- const res = chunkOD4JGU6N_cjs.projectService.getProject();
8548
+ const res = chunkRRNXA47A_cjs.projectService.getProject();
8532
8549
  return (await res).data;
8533
8550
  } catch (error) {
8534
8551
  console.error("Error fetching projects:", error);
@@ -8822,7 +8839,7 @@ var LoginHeader = ({
8822
8839
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
8823
8840
  const {
8824
8841
  config: { appLogoUrl }
8825
- } = chunkOD4JGU6N_cjs.useBlocksAppConfigStore((state) => state);
8842
+ } = chunkRRNXA47A_cjs.useBlocksAppConfigStore((state) => state);
8826
8843
  const resolveLogo = (variant) => {
8827
8844
  if (!appLogoUrl) return void 0;
8828
8845
  if (typeof appLogoUrl === "string") return appLogoUrl;
@@ -10120,10 +10137,10 @@ var BlocksLoginPage = ({
10120
10137
  var LoginPage = () => {
10121
10138
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.login");
10122
10139
  const products = React8.useMemo(() => getBlocksProducts(t), [t]);
10123
- const config = chunkOD4JGU6N_cjs.useBlocksAppConfigStore((state) => state.getConfig());
10124
- const { start, isLoading } = chunkOD4JGU6N_cjs.useLogin();
10125
- const { canSignUp } = chunkOD4JGU6N_cjs.useSignUpAffordance();
10126
- const { start: startSignUp, isLoading: isSignUpLoading } = chunkOD4JGU6N_cjs.useSignUpRedirect();
10140
+ const config = chunkRRNXA47A_cjs.useBlocksAppConfigStore((state) => state.getConfig());
10141
+ const { start, isLoading } = chunkRRNXA47A_cjs.useLogin();
10142
+ const { canSignUp } = chunkRRNXA47A_cjs.useSignUpAffordance();
10143
+ const { start: startSignUp, isLoading: isSignUpLoading } = chunkRRNXA47A_cjs.useSignUpRedirect();
10127
10144
  return /* @__PURE__ */ jsxRuntime.jsx(
10128
10145
  BlocksLoginPage,
10129
10146
  {
@@ -10241,10 +10258,10 @@ var DefaultDoc = () => {
10241
10258
  return /* @__PURE__ */ jsxRuntime.jsx(BentoGrid, { children: getResources(t).map((resource) => /* @__PURE__ */ jsxRuntime.jsx(BentoCard, { ...resource }, resource.url)) });
10242
10259
  };
10243
10260
  function useCreateProjectRedirect() {
10244
- const { name } = chunkOD4JGU6N_cjs.useBlocksAppConfigStore((state) => state.config);
10261
+ const { name } = chunkRRNXA47A_cjs.useBlocksAppConfigStore((state) => state.config);
10245
10262
  const navigate = reactRouter.useNavigate();
10246
10263
  const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
10247
- const { isFetching, isReady, redirect } = chunkOD4JGU6N_cjs.usePrefetchRedirect({
10264
+ const { isFetching, isReady, redirect } = chunkRRNXA47A_cjs.usePrefetchRedirect({
10248
10265
  clientId: osApp ? chunkDVSDWHSQ_cjs.getRuntimeEnv(osApp.clientId) : "",
10249
10266
  redirectUri: osApp ? chunkDVSDWHSQ_cjs.getRuntimeEnv(osApp.redirectUri) : "",
10250
10267
  forwardedTo: "/app/create-project",
@@ -10338,10 +10355,10 @@ function useProjectOverviewRedirect({
10338
10355
  tenantGroupId
10339
10356
  }) {
10340
10357
  const navigate = reactRouter.useNavigate();
10341
- const { name } = chunkOD4JGU6N_cjs.useBlocksAppConfigStore((state) => state.config);
10358
+ const { name } = chunkRRNXA47A_cjs.useBlocksAppConfigStore((state) => state.config);
10342
10359
  const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
10343
10360
  const redirectedRoute = `/app/project/${tenantGroupId}/environments`;
10344
- const { isFetching, isReady, redirect } = chunkOD4JGU6N_cjs.usePrefetchRedirect({
10361
+ const { isFetching, isReady, redirect } = chunkRRNXA47A_cjs.usePrefetchRedirect({
10345
10362
  clientId: osApp ? chunkDVSDWHSQ_cjs.getRuntimeEnv(osApp.clientId) : "",
10346
10363
  redirectUri: osApp ? chunkDVSDWHSQ_cjs.getRuntimeEnv(osApp.redirectUri) : "",
10347
10364
  forwardedTo: redirectedRoute,
@@ -10720,7 +10737,7 @@ function MultiSelect2({
10720
10737
  value: selectedValues
10721
10738
  }) {
10722
10739
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
10723
- const [buttonRef, popoverWidth] = chunkOD4JGU6N_cjs.usePopoverWidth();
10740
+ const [buttonRef, popoverWidth] = chunkRRNXA47A_cjs.usePopoverWidth();
10724
10741
  const onSelectHandler = (value) => {
10725
10742
  const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
10726
10743
  onChange(nextValues);
@@ -11003,7 +11020,7 @@ var useProjectListState = (projectGroups) => {
11003
11020
  })),
11004
11021
  [projectGroups]
11005
11022
  );
11006
- const searchedGroups = chunkOD4JGU6N_cjs.useDebouncedFuseFilter(
11023
+ const searchedGroups = chunkRRNXA47A_cjs.useDebouncedFuseFilter(
11007
11024
  searchableGroups,
11008
11025
  searchText,
11009
11026
  SEARCH_OPTIONS
@@ -11074,7 +11091,7 @@ var SelfProjectLoading = ({ viewMode }) => {
11074
11091
  };
11075
11092
  var SelfProject = ({ canCreateProject = false }) => {
11076
11093
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.console");
11077
- const { data, isLoading } = chunkOD4JGU6N_cjs.useGetProjects({ enabled: true });
11094
+ const { data, isLoading } = chunkRRNXA47A_cjs.useGetProjects({ enabled: true });
11078
11095
  const isPending = isLoading;
11079
11096
  const projectGroups = data || [];
11080
11097
  const {
@@ -11202,7 +11219,7 @@ var announceNewSession = async () => {
11202
11219
  let timer;
11203
11220
  try {
11204
11221
  const status = await Promise.race([
11205
- chunkOD4JGU6N_cjs.impersonationService.impersonationStatus({ skipSessionCheck: true }),
11222
+ chunkRRNXA47A_cjs.impersonationService.impersonationStatus({ skipSessionCheck: true }),
11206
11223
  new Promise((_, reject) => {
11207
11224
  timer = setTimeout(
11208
11225
  () => reject(new Error("Impersonation status timed out")),
@@ -11267,7 +11284,7 @@ var CallbackPage = ({ defaultRedirectUrl }) => {
11267
11284
  };
11268
11285
  function ProfilePage() {
11269
11286
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.profile");
11270
- const { isLoading, error } = chunkOD4JGU6N_cjs.useInitiateRedirect({
11287
+ const { isLoading, error } = chunkRRNXA47A_cjs.useInitiateRedirect({
11271
11288
  clientId: chunkDVSDWHSQ_cjs.getRuntimeEnv("BLOCKS_IAM_CLIENT_ID"),
11272
11289
  redirectUri: chunkDVSDWHSQ_cjs.getRuntimeEnv("BLOCKS_IAM_CALLBACK_URL"),
11273
11290
  forwardedTo: "/app/profile"
@@ -11546,8 +11563,8 @@ var ConfirmationModal = ({
11546
11563
  ] });
11547
11564
  };
11548
11565
  var DashboardOverview = () => {
11549
- const { name } = chunkOD4JGU6N_cjs.useBlocksAppConfigStore((state) => state.config);
11550
- const { data, isFetching } = chunkOD4JGU6N_cjs.useGetProject();
11566
+ const { name } = chunkRRNXA47A_cjs.useBlocksAppConfigStore((state) => state.config);
11567
+ const { data, isFetching } = chunkRRNXA47A_cjs.useGetProject();
11551
11568
  const {
11552
11569
  endpoints,
11553
11570
  isLoading: isLoadingEndpoints,
@@ -11643,11 +11660,11 @@ function ProjectList2({
11643
11660
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
11644
11661
  const navigate = reactRouter.useNavigate();
11645
11662
  const { pathname } = reactRouter.useLocation();
11646
- const { data: projectGroups = [], isLoading } = chunkOD4JGU6N_cjs.useGetProjects({
11663
+ const { data: projectGroups = [], isLoading } = chunkRRNXA47A_cjs.useGetProjects({
11647
11664
  enabled: true
11648
11665
  });
11649
11666
  const { selectedProject, setSelectedProject } = chunkU2LA7LBX_cjs.useProjectStore();
11650
- const { data: projectData } = chunkOD4JGU6N_cjs.useGetProject();
11667
+ const { data: projectData } = chunkRRNXA47A_cjs.useGetProject();
11651
11668
  const pendingProjectRef = React8.useRef(null);
11652
11669
  const redirectRegexMap = React8.useMemo(
11653
11670
  () => Object.entries(redirectPaths).reduce(
@@ -11800,7 +11817,7 @@ var SetCustomDomainDialog = ({
11800
11817
  projectEnv
11801
11818
  }) => {
11802
11819
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
11803
- const { mutateAsync, isPending } = chunkOD4JGU6N_cjs.useUpdateRepositories();
11820
+ const { mutateAsync, isPending } = chunkRRNXA47A_cjs.useUpdateRepositories();
11804
11821
  const verifiedDomains = React8.useMemo(
11805
11822
  () => Array.from(
11806
11823
  new Set(domains.filter((d) => d.isDomainVerified).map((d) => d.domain))
@@ -11986,7 +12003,7 @@ var ProjectRepoList = ({
11986
12003
  data: envRepositoriesResponse,
11987
12004
  isLoading: isLoadingEnvRepos,
11988
12005
  isFetching: isFetchingEnvRepos
11989
- } = chunkOD4JGU6N_cjs.useGetEnvRepositories(project?.tenantId || "");
12006
+ } = chunkRRNXA47A_cjs.useGetEnvRepositories(project?.tenantId || "");
11990
12007
  if (isLoading || isLoadingEnvRepos || isFetchingEnvRepos) {
11991
12008
  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: [
11992
12009
  /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-5 w-1/2" }),
@@ -12089,7 +12106,7 @@ var EditProjectForm = ({
12089
12106
  }) => {
12090
12107
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
12091
12108
  const queryClient = reactQuery.useQueryClient();
12092
- const { mutateAsync, isPending } = chunkOD4JGU6N_cjs.useUpdateTenantGroup();
12109
+ const { mutateAsync, isPending } = chunkRRNXA47A_cjs.useUpdateTenantGroup();
12093
12110
  const form = reactHookForm.useForm({
12094
12111
  resolver: zod$1.zodResolver(editProjectFormSchema),
12095
12112
  defaultValues: {
@@ -12235,7 +12252,7 @@ function SidebarMobileView({
12235
12252
  }) {
12236
12253
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
12237
12254
  const [open, setOpen] = React8.useState(false);
12238
- const { appLightLogo, appDarkLogo } = chunkOD4JGU6N_cjs.useLogo();
12255
+ const { appLightLogo, appDarkLogo } = chunkRRNXA47A_cjs.useLogo();
12239
12256
  const allowedMenu = chunkBPJM3L7O_cjs.useFilteredMenus(navigationMenus);
12240
12257
  return /* @__PURE__ */ jsxRuntime.jsxs(Sheet, { open, onOpenChange: setOpen, children: [
12241
12258
  /* @__PURE__ */ jsxRuntime.jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", size: "icon", className: "shrink-0", children: [
@@ -12286,8 +12303,8 @@ function SidebarMenuDesktop({
12286
12303
  }) {
12287
12304
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
12288
12305
  const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkJFNL44KF_cjs.SidebarContext);
12289
- const { appLightLogo, appDarkLogo } = chunkOD4JGU6N_cjs.useLogo();
12290
- const icon = chunkOD4JGU6N_cjs.useIcon();
12306
+ const { appLightLogo, appDarkLogo } = chunkRRNXA47A_cjs.useLogo();
12307
+ const icon = chunkRRNXA47A_cjs.useIcon();
12291
12308
  const allowedMenu = chunkBPJM3L7O_cjs.useFilteredMenus(navigationMenus);
12292
12309
  const { isActivePath: isProjectOverviewRoute } = chunkBPJM3L7O_cjs.useIsActiveMenu("/app/project");
12293
12310
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -12417,7 +12434,7 @@ var ArchiveProject = () => {
12417
12434
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
12418
12435
  const navigate = reactRouter.useNavigate();
12419
12436
  const projectKey = chunkU2LA7LBX_cjs.useProjectStore().selectedProject?.tenantId || "";
12420
- const { mutateAsync, isPending } = chunkOD4JGU6N_cjs.useDisableProject({ projectKey });
12437
+ const { mutateAsync, isPending } = chunkRRNXA47A_cjs.useDisableProject({ projectKey });
12421
12438
  const onClickHandler = async () => {
12422
12439
  try {
12423
12440
  const res = await mutateAsync();
@@ -13392,7 +13409,7 @@ var ClearButton = ({ onClear }) => {
13392
13409
  function Radio({ label, options, onChange, value }) {
13393
13410
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
13394
13411
  const [search, setSearch] = React8.useState("");
13395
- const [buttonRef, popoverWidth] = chunkOD4JGU6N_cjs.usePopoverWidth();
13412
+ const [buttonRef, popoverWidth] = chunkRRNXA47A_cjs.usePopoverWidth();
13396
13413
  const isMobile = chunkBPJM3L7O_cjs.useIsMobile();
13397
13414
  const selected = React8.useMemo(
13398
13415
  () => options.find((item) => item.value === value) || null,
@@ -14401,5 +14418,5 @@ exports.usePaginationQueryParams = usePaginationQueryParams;
14401
14418
  exports.useRightSidePanel = useRightSidePanel;
14402
14419
  exports.useSortQueryParams = useSortQueryParams;
14403
14420
  exports.useWizardStepper = useWizardStepper;
14404
- //# sourceMappingURL=chunk-A2SDR7II.cjs.map
14405
- //# sourceMappingURL=chunk-A2SDR7II.cjs.map
14421
+ //# sourceMappingURL=chunk-ECRBLTMO.cjs.map
14422
+ //# sourceMappingURL=chunk-ECRBLTMO.cjs.map