@seliseblocks/genesis-os 4.5.1 → 4.5.2

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,17 @@ 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 opensIn = (linkApp, currentApp) => {
7653
+ if (linkApp === currentApp) return true;
7654
+ const areaKey = MERGED_INTO_OS[linkApp];
7655
+ return currentApp === "blocks-os" && !!areaKey && !chunkDVSDWHSQ_cjs.getRuntimeEnv(areaKey);
7656
+ };
7649
7657
  function getNotificationHref(denormalizedPayload, currentApp, projectItemId) {
7650
7658
  const link = getNotificationLink(denormalizedPayload);
7651
- if (link?.app !== currentApp) return null;
7659
+ if (!link || !opensIn(link.app, currentApp)) return null;
7652
7660
  if (!link.scoped) return link.path;
7653
7661
  return projectItemId ? `/app/${encodeURIComponent(projectItemId)}/${link.path}` : null;
7654
7662
  }
@@ -7657,7 +7665,7 @@ function getNotificationHref(denormalizedPayload, currentApp, projectItemId) {
7657
7665
  function useNotificationOpen() {
7658
7666
  const navigate = reactRouter.useNavigate();
7659
7667
  const { itemId } = reactRouter.useParams();
7660
- const app = chunkOD4JGU6N_cjs.useBlocksAppConfigStore((state) => state.config.name);
7668
+ const app = chunkRRNXA47A_cjs.useBlocksAppConfigStore((state) => state.config.name);
7661
7669
  const getHref = React8.useCallback(
7662
7670
  (notification) => getNotificationHref(notification.denormalizedPayload, app, itemId),
7663
7671
  [app, itemId]
@@ -7715,7 +7723,7 @@ function ConsoleHeader() {
7715
7723
  window.addEventListener("scroll", handleScroll);
7716
7724
  return () => window.removeEventListener("scroll", handleScroll);
7717
7725
  }, []);
7718
- const { appLightLogo, appDarkLogo } = chunkOD4JGU6N_cjs.useLogo();
7726
+ const { appLightLogo, appDarkLogo } = chunkRRNXA47A_cjs.useLogo();
7719
7727
  return /* @__PURE__ */ jsxRuntime.jsx(
7720
7728
  "div",
7721
7729
  {
@@ -7928,7 +7936,7 @@ var EnvironmentCard = ({
7928
7936
  }) => {
7929
7937
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
7930
7938
  const { setSelectedProject, setTenantGroup } = chunkU2LA7LBX_cjs.useProjectStore();
7931
- const { mutateAsync } = chunkOD4JGU6N_cjs.useStartImpersonation();
7939
+ const { mutateAsync } = chunkRRNXA47A_cjs.useStartImpersonation();
7932
7940
  const navigate = reactRouter.useNavigate();
7933
7941
  const handleCardClick = async () => {
7934
7942
  try {
@@ -7983,11 +7991,11 @@ function EnvironmentList({
7983
7991
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
7984
7992
  const navigate = reactRouter.useNavigate();
7985
7993
  const { pathname } = reactRouter.useLocation();
7986
- const { data: projectGroups = [], isLoading } = chunkOD4JGU6N_cjs.useGetProjects({
7994
+ const { data: projectGroups = [], isLoading } = chunkRRNXA47A_cjs.useGetProjects({
7987
7995
  enabled: true
7988
7996
  });
7989
7997
  const { selectedProject, setSelectedProject } = chunkU2LA7LBX_cjs.useProjectStore();
7990
- const { data: projectData } = chunkOD4JGU6N_cjs.useGetProject();
7998
+ const { data: projectData } = chunkRRNXA47A_cjs.useGetProject();
7991
7999
  const pendingProjectRef = React8.useRef(null);
7992
8000
  const redirectRegexMap = React8.useMemo(
7993
8001
  () => Object.entries(redirectPaths).reduce(
@@ -8297,10 +8305,10 @@ var useLiveOwnerProbe = ({
8297
8305
  var ImpersonationChecker = ({
8298
8306
  children
8299
8307
  }) => {
8300
- const { data } = chunkOD4JGU6N_cjs.useImpersonationStatusChecker();
8308
+ const { data } = chunkRRNXA47A_cjs.useImpersonationStatusChecker();
8301
8309
  const { setImpersonation, isInitialized, setInitialized } = chunkRO55MFZA_cjs.useImpersonateStore();
8302
- chunkOD4JGU6N_cjs.useSessionTenantGuard();
8303
- chunkOD4JGU6N_cjs.useStatusFirstOnTabReturn();
8310
+ chunkRRNXA47A_cjs.useSessionTenantGuard();
8311
+ chunkRRNXA47A_cjs.useStatusFirstOnTabReturn();
8304
8312
  React8.useEffect(() => {
8305
8313
  if (!data) return;
8306
8314
  setImpersonation(
@@ -8360,8 +8368,8 @@ function ImpersonationTerminator({
8360
8368
  detachedTenantId,
8361
8369
  setDetached
8362
8370
  } = chunkRO55MFZA_cjs.useImpersonateStore();
8363
- const { mutateAsync } = chunkOD4JGU6N_cjs.useStopImpersonation();
8364
- const recordClaimedTenant = chunkOD4JGU6N_cjs.useRecordClaimedTenant();
8371
+ const { mutateAsync } = chunkRRNXA47A_cjs.useStopImpersonation();
8372
+ const recordClaimedTenant = chunkRRNXA47A_cjs.useRecordClaimedTenant();
8365
8373
  const { projects } = chunkU2LA7LBX_cjs.useProjectStore();
8366
8374
  const isTriggering = React8.useRef(false);
8367
8375
  const [isTerminating, setIsTerminating] = React8.useState(false);
@@ -8390,7 +8398,7 @@ function ImpersonationTerminator({
8390
8398
  null
8391
8399
  );
8392
8400
  const { t } = chunkFFMX4JUU_cjs.useT(GENESIS_SHARED_MODULE);
8393
- const signOut = chunkOD4JGU6N_cjs.useSignOut();
8401
+ const signOut = chunkRRNXA47A_cjs.useSignOut();
8394
8402
  React8.useEffect(() => {
8395
8403
  if (!isImpersonated) setReturnFailure(null);
8396
8404
  }, [isImpersonated]);
@@ -8491,9 +8499,9 @@ function ImpersonationSynchronizer({
8491
8499
  setDetached
8492
8500
  } = chunkRO55MFZA_cjs.useImpersonateStore();
8493
8501
  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 });
8502
+ const { mutateAsync } = chunkRRNXA47A_cjs.useStartImpersonation();
8503
+ const recordClaimedTenant = chunkRRNXA47A_cjs.useRecordClaimedTenant();
8504
+ const { data: _data } = chunkRRNXA47A_cjs.useGetProjects({ enabled: true });
8497
8505
  const { selectedProject, setSelectedProject, projects, setTenantGroup } = chunkU2LA7LBX_cjs.useProjectStore();
8498
8506
  const isTriggering = React8.useRef(false);
8499
8507
  const [isImpersonating, setIsImpersonating] = React8.useState(false);
@@ -8528,7 +8536,7 @@ function ImpersonationSynchronizer({
8528
8536
  ]);
8529
8537
  const getImpersonatedProject = async () => {
8530
8538
  try {
8531
- const res = chunkOD4JGU6N_cjs.projectService.getProject();
8539
+ const res = chunkRRNXA47A_cjs.projectService.getProject();
8532
8540
  return (await res).data;
8533
8541
  } catch (error) {
8534
8542
  console.error("Error fetching projects:", error);
@@ -8822,7 +8830,7 @@ var LoginHeader = ({
8822
8830
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
8823
8831
  const {
8824
8832
  config: { appLogoUrl }
8825
- } = chunkOD4JGU6N_cjs.useBlocksAppConfigStore((state) => state);
8833
+ } = chunkRRNXA47A_cjs.useBlocksAppConfigStore((state) => state);
8826
8834
  const resolveLogo = (variant) => {
8827
8835
  if (!appLogoUrl) return void 0;
8828
8836
  if (typeof appLogoUrl === "string") return appLogoUrl;
@@ -10120,10 +10128,10 @@ var BlocksLoginPage = ({
10120
10128
  var LoginPage = () => {
10121
10129
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.login");
10122
10130
  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();
10131
+ const config = chunkRRNXA47A_cjs.useBlocksAppConfigStore((state) => state.getConfig());
10132
+ const { start, isLoading } = chunkRRNXA47A_cjs.useLogin();
10133
+ const { canSignUp } = chunkRRNXA47A_cjs.useSignUpAffordance();
10134
+ const { start: startSignUp, isLoading: isSignUpLoading } = chunkRRNXA47A_cjs.useSignUpRedirect();
10127
10135
  return /* @__PURE__ */ jsxRuntime.jsx(
10128
10136
  BlocksLoginPage,
10129
10137
  {
@@ -10241,10 +10249,10 @@ var DefaultDoc = () => {
10241
10249
  return /* @__PURE__ */ jsxRuntime.jsx(BentoGrid, { children: getResources(t).map((resource) => /* @__PURE__ */ jsxRuntime.jsx(BentoCard, { ...resource }, resource.url)) });
10242
10250
  };
10243
10251
  function useCreateProjectRedirect() {
10244
- const { name } = chunkOD4JGU6N_cjs.useBlocksAppConfigStore((state) => state.config);
10252
+ const { name } = chunkRRNXA47A_cjs.useBlocksAppConfigStore((state) => state.config);
10245
10253
  const navigate = reactRouter.useNavigate();
10246
10254
  const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
10247
- const { isFetching, isReady, redirect } = chunkOD4JGU6N_cjs.usePrefetchRedirect({
10255
+ const { isFetching, isReady, redirect } = chunkRRNXA47A_cjs.usePrefetchRedirect({
10248
10256
  clientId: osApp ? chunkDVSDWHSQ_cjs.getRuntimeEnv(osApp.clientId) : "",
10249
10257
  redirectUri: osApp ? chunkDVSDWHSQ_cjs.getRuntimeEnv(osApp.redirectUri) : "",
10250
10258
  forwardedTo: "/app/create-project",
@@ -10338,10 +10346,10 @@ function useProjectOverviewRedirect({
10338
10346
  tenantGroupId
10339
10347
  }) {
10340
10348
  const navigate = reactRouter.useNavigate();
10341
- const { name } = chunkOD4JGU6N_cjs.useBlocksAppConfigStore((state) => state.config);
10349
+ const { name } = chunkRRNXA47A_cjs.useBlocksAppConfigStore((state) => state.config);
10342
10350
  const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
10343
10351
  const redirectedRoute = `/app/project/${tenantGroupId}/environments`;
10344
- const { isFetching, isReady, redirect } = chunkOD4JGU6N_cjs.usePrefetchRedirect({
10352
+ const { isFetching, isReady, redirect } = chunkRRNXA47A_cjs.usePrefetchRedirect({
10345
10353
  clientId: osApp ? chunkDVSDWHSQ_cjs.getRuntimeEnv(osApp.clientId) : "",
10346
10354
  redirectUri: osApp ? chunkDVSDWHSQ_cjs.getRuntimeEnv(osApp.redirectUri) : "",
10347
10355
  forwardedTo: redirectedRoute,
@@ -10720,7 +10728,7 @@ function MultiSelect2({
10720
10728
  value: selectedValues
10721
10729
  }) {
10722
10730
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
10723
- const [buttonRef, popoverWidth] = chunkOD4JGU6N_cjs.usePopoverWidth();
10731
+ const [buttonRef, popoverWidth] = chunkRRNXA47A_cjs.usePopoverWidth();
10724
10732
  const onSelectHandler = (value) => {
10725
10733
  const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
10726
10734
  onChange(nextValues);
@@ -11003,7 +11011,7 @@ var useProjectListState = (projectGroups) => {
11003
11011
  })),
11004
11012
  [projectGroups]
11005
11013
  );
11006
- const searchedGroups = chunkOD4JGU6N_cjs.useDebouncedFuseFilter(
11014
+ const searchedGroups = chunkRRNXA47A_cjs.useDebouncedFuseFilter(
11007
11015
  searchableGroups,
11008
11016
  searchText,
11009
11017
  SEARCH_OPTIONS
@@ -11074,7 +11082,7 @@ var SelfProjectLoading = ({ viewMode }) => {
11074
11082
  };
11075
11083
  var SelfProject = ({ canCreateProject = false }) => {
11076
11084
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.console");
11077
- const { data, isLoading } = chunkOD4JGU6N_cjs.useGetProjects({ enabled: true });
11085
+ const { data, isLoading } = chunkRRNXA47A_cjs.useGetProjects({ enabled: true });
11078
11086
  const isPending = isLoading;
11079
11087
  const projectGroups = data || [];
11080
11088
  const {
@@ -11202,7 +11210,7 @@ var announceNewSession = async () => {
11202
11210
  let timer;
11203
11211
  try {
11204
11212
  const status = await Promise.race([
11205
- chunkOD4JGU6N_cjs.impersonationService.impersonationStatus({ skipSessionCheck: true }),
11213
+ chunkRRNXA47A_cjs.impersonationService.impersonationStatus({ skipSessionCheck: true }),
11206
11214
  new Promise((_, reject) => {
11207
11215
  timer = setTimeout(
11208
11216
  () => reject(new Error("Impersonation status timed out")),
@@ -11267,7 +11275,7 @@ var CallbackPage = ({ defaultRedirectUrl }) => {
11267
11275
  };
11268
11276
  function ProfilePage() {
11269
11277
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.profile");
11270
- const { isLoading, error } = chunkOD4JGU6N_cjs.useInitiateRedirect({
11278
+ const { isLoading, error } = chunkRRNXA47A_cjs.useInitiateRedirect({
11271
11279
  clientId: chunkDVSDWHSQ_cjs.getRuntimeEnv("BLOCKS_IAM_CLIENT_ID"),
11272
11280
  redirectUri: chunkDVSDWHSQ_cjs.getRuntimeEnv("BLOCKS_IAM_CALLBACK_URL"),
11273
11281
  forwardedTo: "/app/profile"
@@ -11546,8 +11554,8 @@ var ConfirmationModal = ({
11546
11554
  ] });
11547
11555
  };
11548
11556
  var DashboardOverview = () => {
11549
- const { name } = chunkOD4JGU6N_cjs.useBlocksAppConfigStore((state) => state.config);
11550
- const { data, isFetching } = chunkOD4JGU6N_cjs.useGetProject();
11557
+ const { name } = chunkRRNXA47A_cjs.useBlocksAppConfigStore((state) => state.config);
11558
+ const { data, isFetching } = chunkRRNXA47A_cjs.useGetProject();
11551
11559
  const {
11552
11560
  endpoints,
11553
11561
  isLoading: isLoadingEndpoints,
@@ -11643,11 +11651,11 @@ function ProjectList2({
11643
11651
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
11644
11652
  const navigate = reactRouter.useNavigate();
11645
11653
  const { pathname } = reactRouter.useLocation();
11646
- const { data: projectGroups = [], isLoading } = chunkOD4JGU6N_cjs.useGetProjects({
11654
+ const { data: projectGroups = [], isLoading } = chunkRRNXA47A_cjs.useGetProjects({
11647
11655
  enabled: true
11648
11656
  });
11649
11657
  const { selectedProject, setSelectedProject } = chunkU2LA7LBX_cjs.useProjectStore();
11650
- const { data: projectData } = chunkOD4JGU6N_cjs.useGetProject();
11658
+ const { data: projectData } = chunkRRNXA47A_cjs.useGetProject();
11651
11659
  const pendingProjectRef = React8.useRef(null);
11652
11660
  const redirectRegexMap = React8.useMemo(
11653
11661
  () => Object.entries(redirectPaths).reduce(
@@ -11800,7 +11808,7 @@ var SetCustomDomainDialog = ({
11800
11808
  projectEnv
11801
11809
  }) => {
11802
11810
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
11803
- const { mutateAsync, isPending } = chunkOD4JGU6N_cjs.useUpdateRepositories();
11811
+ const { mutateAsync, isPending } = chunkRRNXA47A_cjs.useUpdateRepositories();
11804
11812
  const verifiedDomains = React8.useMemo(
11805
11813
  () => Array.from(
11806
11814
  new Set(domains.filter((d) => d.isDomainVerified).map((d) => d.domain))
@@ -11986,7 +11994,7 @@ var ProjectRepoList = ({
11986
11994
  data: envRepositoriesResponse,
11987
11995
  isLoading: isLoadingEnvRepos,
11988
11996
  isFetching: isFetchingEnvRepos
11989
- } = chunkOD4JGU6N_cjs.useGetEnvRepositories(project?.tenantId || "");
11997
+ } = chunkRRNXA47A_cjs.useGetEnvRepositories(project?.tenantId || "");
11990
11998
  if (isLoading || isLoadingEnvRepos || isFetchingEnvRepos) {
11991
11999
  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
12000
  /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-5 w-1/2" }),
@@ -12089,7 +12097,7 @@ var EditProjectForm = ({
12089
12097
  }) => {
12090
12098
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
12091
12099
  const queryClient = reactQuery.useQueryClient();
12092
- const { mutateAsync, isPending } = chunkOD4JGU6N_cjs.useUpdateTenantGroup();
12100
+ const { mutateAsync, isPending } = chunkRRNXA47A_cjs.useUpdateTenantGroup();
12093
12101
  const form = reactHookForm.useForm({
12094
12102
  resolver: zod$1.zodResolver(editProjectFormSchema),
12095
12103
  defaultValues: {
@@ -12235,7 +12243,7 @@ function SidebarMobileView({
12235
12243
  }) {
12236
12244
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
12237
12245
  const [open, setOpen] = React8.useState(false);
12238
- const { appLightLogo, appDarkLogo } = chunkOD4JGU6N_cjs.useLogo();
12246
+ const { appLightLogo, appDarkLogo } = chunkRRNXA47A_cjs.useLogo();
12239
12247
  const allowedMenu = chunkBPJM3L7O_cjs.useFilteredMenus(navigationMenus);
12240
12248
  return /* @__PURE__ */ jsxRuntime.jsxs(Sheet, { open, onOpenChange: setOpen, children: [
12241
12249
  /* @__PURE__ */ jsxRuntime.jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", size: "icon", className: "shrink-0", children: [
@@ -12286,8 +12294,8 @@ function SidebarMenuDesktop({
12286
12294
  }) {
12287
12295
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
12288
12296
  const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkJFNL44KF_cjs.SidebarContext);
12289
- const { appLightLogo, appDarkLogo } = chunkOD4JGU6N_cjs.useLogo();
12290
- const icon = chunkOD4JGU6N_cjs.useIcon();
12297
+ const { appLightLogo, appDarkLogo } = chunkRRNXA47A_cjs.useLogo();
12298
+ const icon = chunkRRNXA47A_cjs.useIcon();
12291
12299
  const allowedMenu = chunkBPJM3L7O_cjs.useFilteredMenus(navigationMenus);
12292
12300
  const { isActivePath: isProjectOverviewRoute } = chunkBPJM3L7O_cjs.useIsActiveMenu("/app/project");
12293
12301
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -12417,7 +12425,7 @@ var ArchiveProject = () => {
12417
12425
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
12418
12426
  const navigate = reactRouter.useNavigate();
12419
12427
  const projectKey = chunkU2LA7LBX_cjs.useProjectStore().selectedProject?.tenantId || "";
12420
- const { mutateAsync, isPending } = chunkOD4JGU6N_cjs.useDisableProject({ projectKey });
12428
+ const { mutateAsync, isPending } = chunkRRNXA47A_cjs.useDisableProject({ projectKey });
12421
12429
  const onClickHandler = async () => {
12422
12430
  try {
12423
12431
  const res = await mutateAsync();
@@ -13392,7 +13400,7 @@ var ClearButton = ({ onClear }) => {
13392
13400
  function Radio({ label, options, onChange, value }) {
13393
13401
  const { t } = chunkFFMX4JUU_cjs.useT("genesis.shared");
13394
13402
  const [search, setSearch] = React8.useState("");
13395
- const [buttonRef, popoverWidth] = chunkOD4JGU6N_cjs.usePopoverWidth();
13403
+ const [buttonRef, popoverWidth] = chunkRRNXA47A_cjs.usePopoverWidth();
13396
13404
  const isMobile = chunkBPJM3L7O_cjs.useIsMobile();
13397
13405
  const selected = React8.useMemo(
13398
13406
  () => options.find((item) => item.value === value) || null,
@@ -14401,5 +14409,5 @@ exports.usePaginationQueryParams = usePaginationQueryParams;
14401
14409
  exports.useRightSidePanel = useRightSidePanel;
14402
14410
  exports.useSortQueryParams = useSortQueryParams;
14403
14411
  exports.useWizardStepper = useWizardStepper;
14404
- //# sourceMappingURL=chunk-A2SDR7II.cjs.map
14405
- //# sourceMappingURL=chunk-A2SDR7II.cjs.map
14412
+ //# sourceMappingURL=chunk-DO4LFM52.cjs.map
14413
+ //# sourceMappingURL=chunk-DO4LFM52.cjs.map