@seliseblocks/genesis-os 4.4.6 → 4.4.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.
- package/dist/{all-OJ5YSNAN.js → all-DOPVVJD5.js} +41 -41
- package/dist/all-DOPVVJD5.js.map +1 -0
- package/dist/{all-2UHIE3HU.cjs → all-U2EMOAAN.cjs} +41 -41
- package/dist/all-U2EMOAAN.cjs.map +1 -0
- package/dist/chunk-2MP66EX3.cjs +16 -0
- package/dist/chunk-2MP66EX3.cjs.map +1 -0
- package/dist/chunk-3LBTW4A3.cjs +70 -0
- package/dist/chunk-3LBTW4A3.cjs.map +1 -0
- package/dist/{chunk-ZR6LRRN6.js → chunk-3OO2YVXW.js} +13 -7
- package/dist/chunk-3OO2YVXW.js.map +1 -0
- package/dist/chunk-3V7O45KN.js +86 -0
- package/dist/chunk-3V7O45KN.js.map +1 -0
- package/dist/{chunk-QTSTAWK3.cjs → chunk-4RZMYO3F.cjs} +8 -7
- package/dist/chunk-4RZMYO3F.cjs.map +1 -0
- package/dist/{chunk-356ZGDMJ.cjs → chunk-5IOXQBUO.cjs} +3 -3
- package/dist/{chunk-356ZGDMJ.cjs.map → chunk-5IOXQBUO.cjs.map} +1 -1
- package/dist/{chunk-JQ4U53QV.cjs → chunk-5JLLXRMI.cjs} +41 -41
- package/dist/{chunk-JQ4U53QV.cjs.map → chunk-5JLLXRMI.cjs.map} +1 -1
- package/dist/chunk-6QSPMPJD.js +3 -0
- package/dist/chunk-6QSPMPJD.js.map +1 -0
- package/dist/chunk-7ZZ3KLZD.js +14 -0
- package/dist/chunk-7ZZ3KLZD.js.map +1 -0
- package/dist/{chunk-WL6LTNZN.js → chunk-ASX5UGE4.js} +40 -40
- package/dist/{chunk-WL6LTNZN.js.map → chunk-ASX5UGE4.js.map} +1 -1
- package/dist/{chunk-CGVT7IFM.cjs → chunk-CSFOG5YH.cjs} +875 -682
- package/dist/chunk-CSFOG5YH.cjs.map +1 -0
- package/dist/{chunk-NPMO67H6.js → chunk-F2IEUFPT.js} +709 -516
- package/dist/chunk-F2IEUFPT.js.map +1 -0
- package/dist/chunk-GAQGM46C.cjs +4 -0
- package/dist/chunk-GAQGM46C.cjs.map +1 -0
- package/dist/chunk-GSCW3WIQ.cjs +90 -0
- package/dist/chunk-GSCW3WIQ.cjs.map +1 -0
- package/dist/{chunk-4CMIWUZW.cjs → chunk-IPMRZNNS.cjs} +25 -24
- package/dist/chunk-IPMRZNNS.cjs.map +1 -0
- package/dist/{chunk-JITR3QYC.js → chunk-JYA5S4XN.js} +3 -64
- package/dist/chunk-JYA5S4XN.js.map +1 -0
- package/dist/chunk-KZ3NZCXZ.cjs +859 -0
- package/dist/chunk-KZ3NZCXZ.cjs.map +1 -0
- package/dist/{chunk-XRAO7JBH.js → chunk-KZOSD6FO.js} +11 -4
- package/dist/chunk-KZOSD6FO.js.map +1 -0
- package/dist/{chunk-R5OAGX3J.js → chunk-ND6E3LWI.js} +3 -3
- package/dist/{chunk-R5OAGX3J.js.map → chunk-ND6E3LWI.js.map} +1 -1
- package/dist/chunk-O2MGCS3O.js +830 -0
- package/dist/chunk-O2MGCS3O.js.map +1 -0
- package/dist/{chunk-JSXAKNHQ.js → chunk-O7TJN754.js} +7 -6
- package/dist/chunk-O7TJN754.js.map +1 -0
- package/dist/{chunk-JUVLHPQI.js → chunk-POJIHGRY.js} +3 -14
- package/dist/chunk-POJIHGRY.js.map +1 -0
- package/dist/{chunk-4QN4CYSC.cjs → chunk-RO55MFZA.cjs} +2 -64
- package/dist/chunk-RO55MFZA.cjs.map +1 -0
- package/dist/chunk-SQG7DJNY.js +68 -0
- package/dist/chunk-SQG7DJNY.js.map +1 -0
- package/dist/{chunk-X4YCRWXO.cjs → chunk-TSRDXJUG.cjs} +2 -14
- package/dist/chunk-TSRDXJUG.cjs.map +1 -0
- package/dist/{chunk-6GCU5LM7.cjs → chunk-U2LA7LBX.cjs} +2 -84
- package/dist/chunk-U2LA7LBX.cjs.map +1 -0
- package/dist/{chunk-O5ACQLWB.js → chunk-UDFH7SJI.js} +5 -4
- package/dist/chunk-UDFH7SJI.js.map +1 -0
- package/dist/{chunk-IRIDGVV2.cjs → chunk-VLZJP6FH.cjs} +70 -64
- package/dist/chunk-VLZJP6FH.cjs.map +1 -0
- package/dist/{chunk-IJMKS4XG.cjs → chunk-X3GPJW7R.cjs} +15 -8
- package/dist/chunk-X3GPJW7R.cjs.map +1 -0
- package/dist/{chunk-4UHGGHI6.js → chunk-Z4ZDSA2A.js} +3 -82
- package/dist/chunk-Z4ZDSA2A.js.map +1 -0
- package/dist/components/index.cjs +399 -394
- package/dist/components/index.d.cts +5 -1
- package/dist/components/index.d.ts +5 -1
- package/dist/components/index.js +52 -47
- package/dist/guards/index.cjs +58 -53
- package/dist/guards/index.js +52 -47
- package/dist/hooks/index.cjs +65 -62
- package/dist/hooks/index.d.cts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +8 -5
- package/dist/i18n/index.cjs +125 -0
- package/dist/i18n/index.cjs.map +1 -0
- package/dist/i18n/index.d.cts +137 -0
- package/dist/i18n/index.d.ts +137 -0
- package/dist/i18n/index.js +8 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/index.cjs +708 -591
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +52 -47
- package/dist/layouts/index.cjs +59 -54
- package/dist/layouts/index.js +52 -47
- package/dist/lib/index.cjs +38 -36
- package/dist/lib/index.js +5 -3
- package/dist/observability/index.cjs +75 -4
- package/dist/observability/index.cjs.map +1 -1
- package/dist/observability/index.d.cts +47 -5
- package/dist/observability/index.d.ts +47 -5
- package/dist/observability/index.js +71 -2
- package/dist/observability/index.js.map +1 -1
- package/dist/pages/index.cjs +57 -52
- package/dist/pages/index.js +52 -47
- package/dist/providers/index.cjs +11 -7
- package/dist/providers/index.js +7 -3
- package/dist/store/index.cjs +15 -13
- package/dist/store/index.js +4 -2
- package/dist/{tsx-PN3P5NJP.cjs → tsx-MALMUEWS.cjs} +5 -5
- package/dist/tsx-MALMUEWS.cjs.map +1 -0
- package/dist/{tsx-UJQQBLY4.js → tsx-MJR7GSNC.js} +4 -4
- package/dist/tsx-MJR7GSNC.js.map +1 -0
- package/dist/utils/index.cjs +77 -72
- package/dist/utils/index.js +9 -4
- package/package.json +6 -1
- package/dist/all-2UHIE3HU.cjs.map +0 -1
- package/dist/all-OJ5YSNAN.js.map +0 -1
- package/dist/chunk-4CMIWUZW.cjs.map +0 -1
- package/dist/chunk-4QN4CYSC.cjs.map +0 -1
- package/dist/chunk-4UHGGHI6.js.map +0 -1
- package/dist/chunk-6GCU5LM7.cjs.map +0 -1
- package/dist/chunk-CGVT7IFM.cjs.map +0 -1
- package/dist/chunk-IJMKS4XG.cjs.map +0 -1
- package/dist/chunk-IRIDGVV2.cjs.map +0 -1
- package/dist/chunk-JITR3QYC.js.map +0 -1
- package/dist/chunk-JSXAKNHQ.js.map +0 -1
- package/dist/chunk-JUVLHPQI.js.map +0 -1
- package/dist/chunk-NPMO67H6.js.map +0 -1
- package/dist/chunk-O5ACQLWB.js.map +0 -1
- package/dist/chunk-QTSTAWK3.cjs.map +0 -1
- package/dist/chunk-X4YCRWXO.cjs.map +0 -1
- package/dist/chunk-XRAO7JBH.js.map +0 -1
- package/dist/chunk-ZR6LRRN6.js.map +0 -1
- package/dist/tsx-PN3P5NJP.cjs.map +0 -1
- package/dist/tsx-UJQQBLY4.js.map +0 -1
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import { refractor } from './chunk-FGY7QM3Y.js';
|
|
2
|
-
import { notificationService, useKeyboardShortcut, usePopoverWidth, useBlocksAppConfigStore, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, useLogo, useStartImpersonation, useGetProjects, useGetProject, useImpersonationStatusChecker, useSessionTenantGuard, useStatusFirstOnTabReturn, useStopImpersonation, useRecordClaimedTenant, useSignOut, useLogin, useSignUpAffordance, useSignUpRedirect, useInitiateRedirect, useGetEnvRepositories, useUpdateTenantGroup, useIcon, useDisableProject, projectService, initiateService, useGetNotifications, useMarkAsRead, useMarkAllAsRead, impersonationService, useDebouncedFuseFilter, useUpdateRepositories, usePrefetchRedirect } from './chunk-
|
|
3
|
-
import { showErrorToast, createStorage, getForwardedToPath, debounce, formatFullDate, formatDate, deepEqual, showSuccessToast, isErrorWithErrors, getServiceBaseUrl, getServiceSwaggerUrl } from './chunk-
|
|
4
|
-
import { fadeTransition, fadeInUp, staggerContainer, staggerItem, fadeInScale, subscribeToSignOut, subscribeToTenantClaims, holdTenant, iamClient, AUTH_ENDPOINTS, claimTenant, readCurrentOwner, TAB_ID, isTenantHeldElsewhere, isSameClaim, PROFILE_ENDPOINTS } from './chunk-
|
|
5
|
-
import {
|
|
6
|
-
import { defaultRightSidePanelContextValue, RightSidePanelContext, SidebarContext, DashboardLayoutProvider } from './chunk-
|
|
2
|
+
import { notificationService, useKeyboardShortcut, usePopoverWidth, useBlocksAppConfigStore, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, useLogo, useStartImpersonation, useGetProjects, useGetProject, useImpersonationStatusChecker, useSessionTenantGuard, useStatusFirstOnTabReturn, useStopImpersonation, useRecordClaimedTenant, useSignOut, useLogin, useSignUpAffordance, useSignUpRedirect, useInitiateRedirect, useGetEnvRepositories, useUpdateTenantGroup, useIcon, useDisableProject, projectService, initiateService, useGetNotifications, useMarkAsRead, useMarkAllAsRead, impersonationService, useDebouncedFuseFilter, useUpdateRepositories, usePrefetchRedirect } from './chunk-3OO2YVXW.js';
|
|
3
|
+
import { showErrorToast, createStorage, getForwardedToPath, debounce, formatFullDate, formatDate, deepEqual, showSuccessToast, isErrorWithErrors, getServiceBaseUrl, getServiceSwaggerUrl } from './chunk-O7TJN754.js';
|
|
4
|
+
import { fadeTransition, fadeInUp, staggerContainer, staggerItem, fadeInScale, subscribeToSignOut, subscribeToTenantClaims, holdTenant, iamClient, AUTH_ENDPOINTS, claimTenant, readCurrentOwner, TAB_ID, isTenantHeldElsewhere, isSameClaim, PROFILE_ENDPOINTS } from './chunk-UDFH7SJI.js';
|
|
5
|
+
import { HttpError } from './chunk-7ZZ3KLZD.js';
|
|
6
|
+
import { defaultRightSidePanelContextValue, RightSidePanelContext, SidebarContext, DashboardLayoutProvider } from './chunk-KZOSD6FO.js';
|
|
7
7
|
import { useIsMobile, useIsActiveMenu, useFilteredMenus } from './chunk-AHCHUUXM.js';
|
|
8
|
+
import { useT, tStatic, useDocumentLanguage, useLanguagesStore } from './chunk-O2MGCS3O.js';
|
|
8
9
|
import { cn } from './chunk-3MLPBMH2.js';
|
|
9
10
|
import { getQueryClient } from './chunk-BRHE44FE.js';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
11
|
+
import { getRuntimeEnv } from './chunk-POJIHGRY.js';
|
|
12
|
+
import { useLayoutSettingsStore, useLanguageViewStore, useImpersonateStore, useUserStore } from './chunk-JYA5S4XN.js';
|
|
13
|
+
import { useProjectStore, useAuthStore } from './chunk-Z4ZDSA2A.js';
|
|
14
|
+
import { CookieStorage } from './chunk-3V7O45KN.js';
|
|
12
15
|
import { __commonJS, __toESM } from './chunk-PL4HS6R6.js';
|
|
13
16
|
import * as React8 from 'react';
|
|
14
|
-
import React8__default, { createContext, forwardRef, useState, useCallback, useEffect, useRef, useContext, useMemo,
|
|
17
|
+
import React8__default, { createContext, forwardRef, useState, useCallback, useEffect, useRef, useContext, useMemo, Fragment as Fragment$1, Suspense, Component, createElement as createElement$1, isValidElement } from 'react';
|
|
15
18
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
16
19
|
import { motion, AnimatePresence } from 'framer-motion';
|
|
17
20
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
18
21
|
import { Slot } from '@radix-ui/react-slot';
|
|
19
22
|
import { cva } from 'class-variance-authority';
|
|
20
|
-
import { X, PanelLeft, MessageSquare, Dot, Calendar as Calendar$1, ChevronDown, ChevronRight, Check, Circle, Search, Loader2, ArrowLeft, ArrowRight, EyeOff, Eye, Trash2, ChevronUp, ChevronsLeft, ChevronLeft, ChevronsRight, MoreHorizontal, Copy, GripVertical, TriangleAlert, Paperclip, ArrowDownToLine, Moon, Sun, Monitor, UserRound, Building2, LogOut, MenuIcon, HourglassIcon, ChevronRightIcon, Globe, Loader, FolderOpen, Edit, Menu, AlertCircle, Archive, LoaderCircle, CircleHelp, CalendarIcon, ArrowDown, ArrowUp, Filter, EllipsisVertical, RotateCcw, CloudUpload, Grip, Bell,
|
|
23
|
+
import { X, PanelLeft, MessageSquare, Dot, Calendar as Calendar$1, ChevronDown, ChevronRight, Check, Circle, Search, Loader2, ArrowLeft, ArrowRight, EyeOff, Eye, Trash2, ChevronUp, ChevronsLeft, ChevronLeft, ChevronsRight, MoreHorizontal, Copy, GripVertical, TriangleAlert, Paperclip, ArrowDownToLine, Moon, Sun, Monitor, UserRound, Building2, LogOut, MenuIcon, HourglassIcon, ChevronRightIcon, Globe, Loader, FolderOpen, Edit, Menu, AlertCircle, Archive, LoaderCircle, CircleHelp, CalendarIcon, ArrowDown, ArrowUp, Filter, EllipsisVertical, RotateCcw, CloudUpload, Grip, Bell, Layers, BookOpenText, Plus, UsersRound, LayoutGrid, List, SquareTerminal, Sparkles, ArrowUpRight, Pencil, Settings2, Terminal } from 'lucide-react';
|
|
21
24
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
22
25
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
23
26
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
@@ -60,6 +63,7 @@ import * as SelectPrimitive from '@radix-ui/react-select';
|
|
|
60
63
|
import { useNavigate, Link, useLocation, useParams, Navigate, Outlet, useSearchParams } from 'react-router';
|
|
61
64
|
import { useQueryClient, useQueries, useQuery } from '@tanstack/react-query';
|
|
62
65
|
import { HubConnectionBuilder, HttpTransportType } from '@microsoft/signalr';
|
|
66
|
+
import { de } from 'date-fns/locale/de';
|
|
63
67
|
import { createColumnHelper, flexRender, useReactTable, getCoreRowModel } from '@tanstack/react-table';
|
|
64
68
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
65
69
|
import { z } from 'zod';
|
|
@@ -373,6 +377,10 @@ var Separator = React8.forwardRef(
|
|
|
373
377
|
)
|
|
374
378
|
);
|
|
375
379
|
Separator.displayName = SeparatorPrimitive.Root.displayName;
|
|
380
|
+
var SrClose = () => {
|
|
381
|
+
const { t } = useT("genesis.shared");
|
|
382
|
+
return /* @__PURE__ */ jsx("span", { className: "sr-only", children: t("common:CLOSE") });
|
|
383
|
+
};
|
|
376
384
|
var Sheet = SheetPrimitive.Root;
|
|
377
385
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
378
386
|
var SheetClose = SheetPrimitive.Close;
|
|
@@ -417,7 +425,7 @@ var SheetContent = React8.forwardRef(({ side = "right", className, hideClose, ch
|
|
|
417
425
|
children,
|
|
418
426
|
!hideClose && /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-6 top-8 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
419
427
|
/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
|
|
420
|
-
/* @__PURE__ */ jsx(
|
|
428
|
+
/* @__PURE__ */ jsx(SrClose, {})
|
|
421
429
|
] })
|
|
422
430
|
]
|
|
423
431
|
}
|
|
@@ -508,6 +516,7 @@ function useSidebar() {
|
|
|
508
516
|
}
|
|
509
517
|
return context;
|
|
510
518
|
}
|
|
519
|
+
var TOGGLE_KEY = "SIDEBAR.TOGGLE";
|
|
511
520
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
512
521
|
var SIDEBAR_WIDTH = "16rem";
|
|
513
522
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
@@ -703,6 +712,7 @@ var Sidebar = React8.forwardRef(
|
|
|
703
712
|
);
|
|
704
713
|
Sidebar.displayName = "Sidebar";
|
|
705
714
|
var SidebarTrigger = React8.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
715
|
+
const { t } = useT("genesis.shared");
|
|
706
716
|
const { toggleSidebar } = useSidebar();
|
|
707
717
|
const PanelLeftIcon = PanelLeft;
|
|
708
718
|
return /* @__PURE__ */ jsxs(
|
|
@@ -720,23 +730,24 @@ var SidebarTrigger = React8.forwardRef(({ className, onClick, ...props }, ref) =
|
|
|
720
730
|
...props,
|
|
721
731
|
children: [
|
|
722
732
|
/* @__PURE__ */ jsx(PanelLeftIcon, {}),
|
|
723
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children:
|
|
733
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: t(TOGGLE_KEY) })
|
|
724
734
|
]
|
|
725
735
|
}
|
|
726
736
|
);
|
|
727
737
|
});
|
|
728
738
|
SidebarTrigger.displayName = "SidebarTrigger";
|
|
729
739
|
var SidebarRail = React8.forwardRef(({ className, ...props }, ref) => {
|
|
740
|
+
const { t } = useT("genesis.shared");
|
|
730
741
|
const { toggleSidebar } = useSidebar();
|
|
731
742
|
return /* @__PURE__ */ jsx(
|
|
732
743
|
"button",
|
|
733
744
|
{
|
|
734
745
|
ref,
|
|
735
746
|
"data-sidebar": "rail",
|
|
736
|
-
"aria-label":
|
|
747
|
+
"aria-label": t(TOGGLE_KEY),
|
|
737
748
|
tabIndex: -1,
|
|
738
749
|
onClick: toggleSidebar,
|
|
739
|
-
title:
|
|
750
|
+
title: t(TOGGLE_KEY),
|
|
740
751
|
className: cn(
|
|
741
752
|
"hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
|
|
742
753
|
"in-data-[side=left]:cursor-w-resize",
|
|
@@ -1104,6 +1115,7 @@ function RenderConditionally({
|
|
|
1104
1115
|
function RightSidePanelResizer({
|
|
1105
1116
|
onHandlePointerDown
|
|
1106
1117
|
}) {
|
|
1118
|
+
const { t } = useT("genesis.shared");
|
|
1107
1119
|
return /* @__PURE__ */ jsxs("div", { className: "pointer-events-none absolute inset-y-0 -left-0.5 w-1.5", children: [
|
|
1108
1120
|
/* @__PURE__ */ jsx(
|
|
1109
1121
|
"div",
|
|
@@ -1118,7 +1130,7 @@ function RightSidePanelResizer({
|
|
|
1118
1130
|
"data-resize-handle": true,
|
|
1119
1131
|
role: "separator",
|
|
1120
1132
|
"aria-orientation": "vertical",
|
|
1121
|
-
"aria-label": "
|
|
1133
|
+
"aria-label": t("RIGHT_SIDE_PANEL.RESIZE_PANEL"),
|
|
1122
1134
|
onPointerDown: onHandlePointerDown,
|
|
1123
1135
|
className: cn(
|
|
1124
1136
|
"pointer-events-auto",
|
|
@@ -1352,13 +1364,14 @@ var RightSidePanelDescription = React8.forwardRef(({ className, ...props }, ref)
|
|
|
1352
1364
|
RightSidePanelDescription.displayName = "RightSidePanelDescription";
|
|
1353
1365
|
var RightSidePanelClose = React8.forwardRef(({ className, ...props }, ref) => {
|
|
1354
1366
|
const { isMobile, close } = useRightSidePanel();
|
|
1367
|
+
const { t } = useT("genesis.shared");
|
|
1355
1368
|
const Comp = isMobile ? Drawer$1.Close : SheetPrimitive.Close;
|
|
1356
1369
|
return /* @__PURE__ */ jsxs(
|
|
1357
1370
|
Comp,
|
|
1358
1371
|
{
|
|
1359
1372
|
ref,
|
|
1360
1373
|
"data-slot": "right-side-panel-close",
|
|
1361
|
-
"aria-label": "
|
|
1374
|
+
"aria-label": t("RIGHT_SIDE_PANEL.CLOSE_PANEL"),
|
|
1362
1375
|
className: cn(
|
|
1363
1376
|
"ring-offset-background focus:ring-ring rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2",
|
|
1364
1377
|
className
|
|
@@ -1370,7 +1383,7 @@ var RightSidePanelClose = React8.forwardRef(({ className, ...props }, ref) => {
|
|
|
1370
1383
|
...props,
|
|
1371
1384
|
children: [
|
|
1372
1385
|
/* @__PURE__ */ jsx(X, { className: "h-4 w-4", "aria-hidden": true }),
|
|
1373
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "
|
|
1386
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: t("common:CLOSE") })
|
|
1374
1387
|
]
|
|
1375
1388
|
}
|
|
1376
1389
|
);
|
|
@@ -1564,10 +1577,11 @@ var RightSidePanelTrigger = React8.forwardRef(
|
|
|
1564
1577
|
type,
|
|
1565
1578
|
...props
|
|
1566
1579
|
}, ref) => {
|
|
1580
|
+
const { t } = useT("genesis.shared");
|
|
1567
1581
|
const { open, toggle, panelId } = useRightSidePanel();
|
|
1568
1582
|
const Comp = asChild ? Slot : Button;
|
|
1569
1583
|
const isFloating = position !== "inline";
|
|
1570
|
-
const computedLabel = ariaLabel ?? label ?? "
|
|
1584
|
+
const computedLabel = ariaLabel ?? label ?? t("RIGHT_SIDE_PANEL.TOGGLE_PANEL");
|
|
1571
1585
|
const handleClick = (event) => {
|
|
1572
1586
|
onClick?.(event);
|
|
1573
1587
|
if (!event.defaultPrevented) toggle();
|
|
@@ -1684,15 +1698,19 @@ var DrawerDescription = React8.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1684
1698
|
}
|
|
1685
1699
|
));
|
|
1686
1700
|
DrawerDescription.displayName = Drawer$1.Description.displayName;
|
|
1687
|
-
var
|
|
1688
|
-
|
|
1689
|
-
{
|
|
1690
|
-
|
|
1691
|
-
"
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
)
|
|
1701
|
+
var I18N_MODULE = "genesis.shared";
|
|
1702
|
+
var Pagination = ({ className, ...props }) => {
|
|
1703
|
+
const { t } = useT(I18N_MODULE);
|
|
1704
|
+
return /* @__PURE__ */ jsx(
|
|
1705
|
+
"nav",
|
|
1706
|
+
{
|
|
1707
|
+
role: "navigation",
|
|
1708
|
+
"aria-label": t("PAGINATION.NAV_ARIA"),
|
|
1709
|
+
className: cn("mx-auto flex w-full justify-center", className),
|
|
1710
|
+
...props
|
|
1711
|
+
}
|
|
1712
|
+
);
|
|
1713
|
+
};
|
|
1696
1714
|
Pagination.displayName = "Pagination";
|
|
1697
1715
|
var PaginationContent = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1698
1716
|
"ul",
|
|
@@ -1729,16 +1747,17 @@ var PaginationPrevious = ({
|
|
|
1729
1747
|
className,
|
|
1730
1748
|
...props
|
|
1731
1749
|
}) => {
|
|
1750
|
+
const { t } = useT(I18N_MODULE);
|
|
1732
1751
|
return /* @__PURE__ */ jsxs(
|
|
1733
1752
|
PaginationLink,
|
|
1734
1753
|
{
|
|
1735
|
-
"aria-label": "
|
|
1754
|
+
"aria-label": t("PAGINATION.PREVIOUS_PAGE"),
|
|
1736
1755
|
size: "default",
|
|
1737
1756
|
className: cn("gap-1 pl-2.5", className),
|
|
1738
1757
|
...props,
|
|
1739
1758
|
children: [
|
|
1740
1759
|
/* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }),
|
|
1741
|
-
/* @__PURE__ */ jsx("span", { children: "
|
|
1760
|
+
/* @__PURE__ */ jsx("span", { children: t("common:PREVIOUS") })
|
|
1742
1761
|
]
|
|
1743
1762
|
}
|
|
1744
1763
|
);
|
|
@@ -1748,15 +1767,16 @@ var PaginationNext = ({
|
|
|
1748
1767
|
className,
|
|
1749
1768
|
...props
|
|
1750
1769
|
}) => {
|
|
1770
|
+
const { t } = useT(I18N_MODULE);
|
|
1751
1771
|
return /* @__PURE__ */ jsxs(
|
|
1752
1772
|
PaginationLink,
|
|
1753
1773
|
{
|
|
1754
|
-
"aria-label": "
|
|
1774
|
+
"aria-label": t("PAGINATION.NEXT_PAGE"),
|
|
1755
1775
|
size: "default",
|
|
1756
1776
|
className: cn("gap-1 pr-2.5", className),
|
|
1757
1777
|
...props,
|
|
1758
1778
|
children: [
|
|
1759
|
-
/* @__PURE__ */ jsx("span", { children: "
|
|
1779
|
+
/* @__PURE__ */ jsx("span", { children: t("common:NEXT") }),
|
|
1760
1780
|
/* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })
|
|
1761
1781
|
]
|
|
1762
1782
|
}
|
|
@@ -1767,6 +1787,7 @@ var PaginationEllipsis = ({
|
|
|
1767
1787
|
className,
|
|
1768
1788
|
...props
|
|
1769
1789
|
}) => {
|
|
1790
|
+
const { t } = useT(I18N_MODULE);
|
|
1770
1791
|
return /* @__PURE__ */ jsxs(
|
|
1771
1792
|
"span",
|
|
1772
1793
|
{
|
|
@@ -1775,7 +1796,7 @@ var PaginationEllipsis = ({
|
|
|
1775
1796
|
...props,
|
|
1776
1797
|
children: [
|
|
1777
1798
|
/* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }),
|
|
1778
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "
|
|
1799
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: t("PAGINATION.MORE_PAGES") })
|
|
1779
1800
|
]
|
|
1780
1801
|
}
|
|
1781
1802
|
);
|
|
@@ -3275,7 +3296,7 @@ var DialogContent = React8.forwardRef(({ className, children, hideCloseButton, .
|
|
|
3275
3296
|
children,
|
|
3276
3297
|
!hideCloseButton && /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
3277
3298
|
/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
|
|
3278
|
-
/* @__PURE__ */ jsx(
|
|
3299
|
+
/* @__PURE__ */ jsx(SrClose, {})
|
|
3279
3300
|
] })
|
|
3280
3301
|
]
|
|
3281
3302
|
}
|
|
@@ -3897,11 +3918,12 @@ function StepperItem({
|
|
|
3897
3918
|
}
|
|
3898
3919
|
var Stepper = React8.forwardRef(
|
|
3899
3920
|
({ steps, currentStep, orientation = "horizontal", className, ...props }, ref) => {
|
|
3921
|
+
const { t } = useT("genesis.shared");
|
|
3900
3922
|
return /* @__PURE__ */ jsx(
|
|
3901
3923
|
"ol",
|
|
3902
3924
|
{
|
|
3903
3925
|
ref,
|
|
3904
|
-
"aria-label": "
|
|
3926
|
+
"aria-label": t("STEPPER.PROGRESS"),
|
|
3905
3927
|
className: cn(
|
|
3906
3928
|
"flex w-full",
|
|
3907
3929
|
orientation === "vertical" ? "flex-col gap-4" : "flex-row items-start gap-2",
|
|
@@ -4091,6 +4113,7 @@ var CarouselItem = React8.forwardRef(({ className, ...props }, ref) => {
|
|
|
4091
4113
|
});
|
|
4092
4114
|
CarouselItem.displayName = "CarouselItem";
|
|
4093
4115
|
var CarouselPrevious = React8.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
4116
|
+
const { t } = useT("genesis.shared");
|
|
4094
4117
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
4095
4118
|
return /* @__PURE__ */ jsxs(
|
|
4096
4119
|
Button,
|
|
@@ -4108,13 +4131,14 @@ var CarouselPrevious = React8.forwardRef(({ className, variant = "outline", size
|
|
|
4108
4131
|
...props,
|
|
4109
4132
|
children: [
|
|
4110
4133
|
/* @__PURE__ */ jsx(ArrowLeft, { className: "h-4 w-4" }),
|
|
4111
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "
|
|
4134
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: t("CAROUSEL.PREVIOUS_SLIDE") })
|
|
4112
4135
|
]
|
|
4113
4136
|
}
|
|
4114
4137
|
);
|
|
4115
4138
|
});
|
|
4116
4139
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
4117
4140
|
var CarouselNext = React8.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
4141
|
+
const { t } = useT("genesis.shared");
|
|
4118
4142
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
4119
4143
|
return /* @__PURE__ */ jsxs(
|
|
4120
4144
|
Button,
|
|
@@ -4132,7 +4156,7 @@ var CarouselNext = React8.forwardRef(({ className, variant = "outline", size = "
|
|
|
4132
4156
|
...props,
|
|
4133
4157
|
children: [
|
|
4134
4158
|
/* @__PURE__ */ jsx(ArrowRight, { className: "h-4 w-4" }),
|
|
4135
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "
|
|
4159
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: t("CAROUSEL.NEXT_SLIDE") })
|
|
4136
4160
|
]
|
|
4137
4161
|
}
|
|
4138
4162
|
);
|
|
@@ -4338,7 +4362,8 @@ var ContextMenuShortcut = ({
|
|
|
4338
4362
|
};
|
|
4339
4363
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
4340
4364
|
var PasswordInput = React8.forwardRef(
|
|
4341
|
-
({ className, toggleAriaLabel
|
|
4365
|
+
({ className, toggleAriaLabel, ...props }, ref) => {
|
|
4366
|
+
const { t } = useT("genesis.shared");
|
|
4342
4367
|
const [visible, setVisible] = React8.useState(false);
|
|
4343
4368
|
const Icon2 = visible ? EyeOff : Eye;
|
|
4344
4369
|
return /* @__PURE__ */ jsxs("div", { className: cn("relative", className), children: [
|
|
@@ -4355,7 +4380,7 @@ var PasswordInput = React8.forwardRef(
|
|
|
4355
4380
|
"button",
|
|
4356
4381
|
{
|
|
4357
4382
|
type: "button",
|
|
4358
|
-
"aria-label": toggleAriaLabel,
|
|
4383
|
+
"aria-label": toggleAriaLabel ?? t("PASSWORD_INPUT.TOGGLE_VISIBILITY"),
|
|
4359
4384
|
onClick: () => setVisible((v) => !v),
|
|
4360
4385
|
className: "absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
4361
4386
|
children: /* @__PURE__ */ jsx(Icon2, { className: "size-4" })
|
|
@@ -5259,6 +5284,7 @@ var useFileUpload = () => {
|
|
|
5259
5284
|
}
|
|
5260
5285
|
return context;
|
|
5261
5286
|
};
|
|
5287
|
+
var I18N_MODULE2 = "genesis.shared";
|
|
5262
5288
|
var FileUploader = forwardRef(
|
|
5263
5289
|
({
|
|
5264
5290
|
className,
|
|
@@ -5294,14 +5320,18 @@ var FileUploader = forwardRef(
|
|
|
5294
5320
|
);
|
|
5295
5321
|
useEffect(() => {
|
|
5296
5322
|
if (isFileTooBig) {
|
|
5297
|
-
showErrorToast({
|
|
5323
|
+
showErrorToast({
|
|
5324
|
+
errors: tStatic(I18N_MODULE2, "FILE_UPLOADER.TOO_BIG")
|
|
5325
|
+
});
|
|
5298
5326
|
}
|
|
5299
5327
|
}, [isFileTooBig]);
|
|
5300
5328
|
const onDrop = useCallback(
|
|
5301
5329
|
(acceptedFiles, rejectedFiles) => {
|
|
5302
5330
|
const files = acceptedFiles;
|
|
5303
5331
|
if (!files) {
|
|
5304
|
-
showErrorToast({
|
|
5332
|
+
showErrorToast({
|
|
5333
|
+
errors: tStatic(I18N_MODULE2, "FILE_UPLOADER.FILE_ERROR")
|
|
5334
|
+
});
|
|
5305
5335
|
return;
|
|
5306
5336
|
}
|
|
5307
5337
|
const newValues = value ? [...value] : [];
|
|
@@ -5320,12 +5350,16 @@ var FileUploader = forwardRef(
|
|
|
5320
5350
|
if (!firstError) continue;
|
|
5321
5351
|
if (firstError.code === "file-too-large") {
|
|
5322
5352
|
showErrorToast({
|
|
5323
|
-
errors:
|
|
5353
|
+
errors: tStatic(I18N_MODULE2, "FILE_UPLOADER.TOO_LARGE", {
|
|
5354
|
+
size: maxSize / 1024 / 1024
|
|
5355
|
+
})
|
|
5324
5356
|
});
|
|
5325
5357
|
break;
|
|
5326
5358
|
}
|
|
5327
5359
|
if (firstError.code === "file-invalid-type") {
|
|
5328
|
-
showErrorToast({
|
|
5360
|
+
showErrorToast({
|
|
5361
|
+
errors: tStatic(I18N_MODULE2, "FILE_UPLOADER.INVALID_TYPE")
|
|
5362
|
+
});
|
|
5329
5363
|
break;
|
|
5330
5364
|
}
|
|
5331
5365
|
if (firstError.message) {
|
|
@@ -5475,6 +5509,7 @@ var FileUploaderContent = forwardRef(({ children, className, ...props }, ref) =>
|
|
|
5475
5509
|
});
|
|
5476
5510
|
FileUploaderContent.displayName = "FileUploaderContent";
|
|
5477
5511
|
var FileUploaderItem = forwardRef(({ className, index, children, ...props }, ref) => {
|
|
5512
|
+
const { t } = useT(I18N_MODULE2);
|
|
5478
5513
|
const { removeFileFromSet, activeIndex, direction } = useFileUpload();
|
|
5479
5514
|
const isSelected = index === activeIndex;
|
|
5480
5515
|
return /* @__PURE__ */ jsxs(
|
|
@@ -5500,10 +5535,7 @@ var FileUploaderItem = forwardRef(({ className, index, children, ...props }, ref
|
|
|
5500
5535
|
),
|
|
5501
5536
|
onClick: () => removeFileFromSet(index),
|
|
5502
5537
|
children: [
|
|
5503
|
-
/* @__PURE__ */
|
|
5504
|
-
"remove item ",
|
|
5505
|
-
index
|
|
5506
|
-
] }),
|
|
5538
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: t("FILE_UPLOADER.REMOVE_ITEM", { index }) }),
|
|
5507
5539
|
/* @__PURE__ */ jsx(Trash2, { className: "h-4 w-4 duration-200 ease-in-out hover:stroke-destructive" })
|
|
5508
5540
|
]
|
|
5509
5541
|
}
|
|
@@ -5716,7 +5748,10 @@ var SelectSeparator = React8.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
5716
5748
|
}
|
|
5717
5749
|
));
|
|
5718
5750
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
5719
|
-
var Breadcrumb = React8.forwardRef(({ ...props }, ref) =>
|
|
5751
|
+
var Breadcrumb = React8.forwardRef(({ ...props }, ref) => {
|
|
5752
|
+
const { t } = useT("genesis.shared");
|
|
5753
|
+
return /* @__PURE__ */ jsx("nav", { ref, "aria-label": t("BREADCRUMB.NAV_ARIA"), ...props });
|
|
5754
|
+
});
|
|
5720
5755
|
Breadcrumb.displayName = "Breadcrumb";
|
|
5721
5756
|
var BreadcrumbList = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5722
5757
|
"ol",
|
|
@@ -5781,19 +5816,21 @@ BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
|
5781
5816
|
var BreadcrumbEllipsis = ({
|
|
5782
5817
|
className,
|
|
5783
5818
|
...props
|
|
5784
|
-
}) =>
|
|
5785
|
-
"
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5819
|
+
}) => {
|
|
5820
|
+
const { t } = useT("genesis.shared");
|
|
5821
|
+
return /* @__PURE__ */ jsxs(
|
|
5822
|
+
"span",
|
|
5823
|
+
{
|
|
5824
|
+
"aria-hidden": "true",
|
|
5825
|
+
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
5826
|
+
...props,
|
|
5827
|
+
children: [
|
|
5828
|
+
/* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }),
|
|
5829
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: t("BREADCRUMB.MORE") })
|
|
5830
|
+
]
|
|
5831
|
+
}
|
|
5832
|
+
);
|
|
5833
|
+
};
|
|
5797
5834
|
BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
5798
5835
|
var Timeline = ({
|
|
5799
5836
|
events,
|
|
@@ -6425,6 +6462,7 @@ var AppTile = ({
|
|
|
6425
6462
|
app,
|
|
6426
6463
|
isLoading
|
|
6427
6464
|
}) => {
|
|
6465
|
+
const { t } = useT("genesis.shared");
|
|
6428
6466
|
return /* @__PURE__ */ jsxs(
|
|
6429
6467
|
"a",
|
|
6430
6468
|
{
|
|
@@ -6442,24 +6480,26 @@ var AppTile = ({
|
|
|
6442
6480
|
),
|
|
6443
6481
|
children: [
|
|
6444
6482
|
/* @__PURE__ */ jsx(AppIcon, { icon: app.icon, label: app.label }),
|
|
6445
|
-
/* @__PURE__ */ jsx("span", { className: "text-foreground line-clamp-1 max-w-[90px] text-[12px] font-medium leading-tight", children: isLoading ? "
|
|
6483
|
+
/* @__PURE__ */ jsx("span", { className: "text-foreground line-clamp-1 max-w-[90px] text-[12px] font-medium leading-tight", children: isLoading ? t("APP_SWITCHER_CONTENT.LOADING") : app.label })
|
|
6446
6484
|
]
|
|
6447
6485
|
}
|
|
6448
6486
|
);
|
|
6449
6487
|
};
|
|
6450
6488
|
function AppSwitcherContent({ apps }) {
|
|
6489
|
+
const { t } = useT("genesis.shared");
|
|
6451
6490
|
if (!apps.length)
|
|
6452
|
-
return /* @__PURE__ */ jsx("div", { className: "bg-muted/50 border-t p-3 flex h-12 items-center justify-center", children: /* @__PURE__ */ jsx("p", { className: "text-xs", children: "
|
|
6491
|
+
return /* @__PURE__ */ jsx("div", { className: "bg-muted/50 border-t p-3 flex h-12 items-center justify-center", children: /* @__PURE__ */ jsx("p", { className: "text-xs", children: t("APP_SWITCHER_CONTENT.NO_APPS") }) });
|
|
6453
6492
|
return /* @__PURE__ */ jsxs("div", { className: "bg-muted/50 border-t px-3 pb-4 pt-3", children: [
|
|
6454
6493
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-2 px-1 text-[13px] font-semibold", children: "SELISE Blocks" }),
|
|
6455
6494
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-3", children: apps.map((app) => /* @__PURE__ */ jsx(AppTile, { app, isLoading: app.isLoading }, app.id)) })
|
|
6456
6495
|
] });
|
|
6457
6496
|
}
|
|
6458
6497
|
function AppSwitcherTrigger({ open }) {
|
|
6498
|
+
const { t } = useT("genesis.shared");
|
|
6459
6499
|
return /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
6460
6500
|
"button",
|
|
6461
6501
|
{
|
|
6462
|
-
"aria-label": "
|
|
6502
|
+
"aria-label": t("APP_SWITCHER_TRIGGER.ARIA"),
|
|
6463
6503
|
className: cn(
|
|
6464
6504
|
"text-muted-foreground flex h-9 w-9 items-center justify-center rounded-full transition-colors",
|
|
6465
6505
|
"hover:bg-accent hover:text-foreground focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2",
|
|
@@ -6717,9 +6757,19 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6717
6757
|
] });
|
|
6718
6758
|
};
|
|
6719
6759
|
var OPTIONS = {
|
|
6720
|
-
system: { Icon: Monitor
|
|
6721
|
-
light: { Icon: Sun
|
|
6722
|
-
dark: { Icon: Moon
|
|
6760
|
+
system: { Icon: Monitor },
|
|
6761
|
+
light: { Icon: Sun },
|
|
6762
|
+
dark: { Icon: Moon }
|
|
6763
|
+
};
|
|
6764
|
+
var getLabel = (t, option) => {
|
|
6765
|
+
switch (option) {
|
|
6766
|
+
case "system":
|
|
6767
|
+
return t("THEME_SWITCHER.AUTO");
|
|
6768
|
+
case "light":
|
|
6769
|
+
return t("THEME_SWITCHER.LIGHT");
|
|
6770
|
+
default:
|
|
6771
|
+
return t("THEME_SWITCHER.DARK");
|
|
6772
|
+
}
|
|
6723
6773
|
};
|
|
6724
6774
|
var OPTION_ORDER = ["system", "light", "dark"];
|
|
6725
6775
|
var TRIGGER_BASE_CLASSES = "relative z-50 inline-flex h-9 items-center justify-center gap-1 px-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";
|
|
@@ -6728,6 +6778,7 @@ function ThemeSwitcher({
|
|
|
6728
6778
|
className,
|
|
6729
6779
|
showChevron = true
|
|
6730
6780
|
} = {}) {
|
|
6781
|
+
const { t } = useT("genesis.shared");
|
|
6731
6782
|
const { theme, setTheme } = useTheme();
|
|
6732
6783
|
const { Icon: ThemeIcon } = OPTIONS[theme];
|
|
6733
6784
|
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
@@ -6735,7 +6786,7 @@ function ThemeSwitcher({
|
|
|
6735
6786
|
"button",
|
|
6736
6787
|
{
|
|
6737
6788
|
type: "button",
|
|
6738
|
-
"aria-label": "
|
|
6789
|
+
"aria-label": t("THEME_SWITCHER.CHANGE_THEME"),
|
|
6739
6790
|
className: cn(
|
|
6740
6791
|
TRIGGER_BASE_CLASSES,
|
|
6741
6792
|
className ?? TRIGGER_DEFAULT_TYPOGRAPHY_CLASSES
|
|
@@ -6753,14 +6804,15 @@ function ThemeSwitcher({
|
|
|
6753
6804
|
}
|
|
6754
6805
|
) }),
|
|
6755
6806
|
/* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className: "min-w-40", children: [
|
|
6756
|
-
/* @__PURE__ */ jsx(DropdownMenuLabel, { className: "px-2 py-1.5 text-xs font-medium text-muted-foreground", children: "
|
|
6807
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, { className: "px-2 py-1.5 text-xs font-medium text-muted-foreground", children: t("THEME_SWITCHER.APPEARANCE") }),
|
|
6757
6808
|
/* @__PURE__ */ jsx(
|
|
6758
6809
|
DropdownMenuRadioGroup,
|
|
6759
6810
|
{
|
|
6760
6811
|
value: theme,
|
|
6761
6812
|
onValueChange: (value) => setTheme(value),
|
|
6762
6813
|
children: OPTION_ORDER.map((value) => {
|
|
6763
|
-
const { Icon: Icon2
|
|
6814
|
+
const { Icon: Icon2 } = OPTIONS[value];
|
|
6815
|
+
const label = getLabel(t, value);
|
|
6764
6816
|
const isActive = value === theme;
|
|
6765
6817
|
return /* @__PURE__ */ jsxs(
|
|
6766
6818
|
DropdownMenuRadioItem,
|
|
@@ -6838,6 +6890,7 @@ function UserAvatar({ size = "sm" }) {
|
|
|
6838
6890
|
);
|
|
6839
6891
|
}
|
|
6840
6892
|
function UserDropdownMenu() {
|
|
6893
|
+
const { t } = useT("genesis.shared");
|
|
6841
6894
|
const { name } = useBlocksAppConfigStore((state) => state.config);
|
|
6842
6895
|
const { data } = useGetUserInfo();
|
|
6843
6896
|
const userData = data?.data;
|
|
@@ -6870,7 +6923,7 @@ function UserDropdownMenu() {
|
|
|
6870
6923
|
variant: "link",
|
|
6871
6924
|
size: "icon",
|
|
6872
6925
|
className: "relative h-10 w-10 overflow-hidden rounded-full bg-[hsl(var(--avatar-surface-default))] p-0 text-base font-normal text-[hsl(var(--avatar-text-high-emphasis))] hover:no-underline focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
6873
|
-
"aria-label": "
|
|
6926
|
+
"aria-label": t("USER_DROPDOWN_MENU.OPEN_MENU"),
|
|
6874
6927
|
children: /* @__PURE__ */ jsx(UserAvatar, { size: "sm" })
|
|
6875
6928
|
}
|
|
6876
6929
|
) }),
|
|
@@ -6884,7 +6937,10 @@ function UserDropdownMenu() {
|
|
|
6884
6937
|
/* @__PURE__ */ jsx(UserAvatar, { size: "lg" }),
|
|
6885
6938
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
6886
6939
|
/* @__PURE__ */ jsxs("p", { className: "truncate text-sm font-semibold text-foreground", children: [
|
|
6887
|
-
/* @__PURE__ */
|
|
6940
|
+
/* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
|
|
6941
|
+
t("USER_DROPDOWN_MENU.USER_NAME"),
|
|
6942
|
+
" "
|
|
6943
|
+
] }),
|
|
6888
6944
|
/* @__PURE__ */ jsx("span", { children: fullName })
|
|
6889
6945
|
] }),
|
|
6890
6946
|
/* @__PURE__ */ jsx("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: email }),
|
|
@@ -6892,7 +6948,8 @@ function UserDropdownMenu() {
|
|
|
6892
6948
|
roles.join(", "),
|
|
6893
6949
|
userData?.lastUsedOrganizationId && /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground/60", children: [
|
|
6894
6950
|
" ",
|
|
6895
|
-
"\u2022
|
|
6951
|
+
"\u2022 ",
|
|
6952
|
+
t("USER_DROPDOWN_MENU.DEFAULT")
|
|
6896
6953
|
] })
|
|
6897
6954
|
] })
|
|
6898
6955
|
] })
|
|
@@ -6906,7 +6963,7 @@ function UserDropdownMenu() {
|
|
|
6906
6963
|
className: "cursor-pointer rounded-md px-4 py-3.5",
|
|
6907
6964
|
children: /* @__PURE__ */ jsxs(Link, { to: "/app/profile", className: "flex items-center gap-4", children: [
|
|
6908
6965
|
/* @__PURE__ */ jsx(UserRound, { className: "h-5 w-5 shrink-0 text-foreground/90" }),
|
|
6909
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "
|
|
6966
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: t("USER_DROPDOWN_MENU.MY_PROFILE") })
|
|
6910
6967
|
] })
|
|
6911
6968
|
}
|
|
6912
6969
|
) })
|
|
@@ -6916,7 +6973,7 @@ function UserDropdownMenu() {
|
|
|
6916
6973
|
/* @__PURE__ */ jsxs(DropdownMenuGroup, { className: "p-1.5", children: [
|
|
6917
6974
|
/* @__PURE__ */ jsxs(DropdownMenuLabel, { className: "flex items-center gap-4 px-4 py-3.5 text-sm font-medium text-muted-foreground/70", children: [
|
|
6918
6975
|
/* @__PURE__ */ jsx(Building2, { className: "h-5 w-5 shrink-0 text-foreground/90" }),
|
|
6919
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: "
|
|
6976
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: t("USER_DROPDOWN_MENU.ORGANIZATIONS") })
|
|
6920
6977
|
] }),
|
|
6921
6978
|
/* @__PURE__ */ jsx("div", { className: "max-h-56 overflow-y-auto", children: isOrgsLoading ? /* @__PURE__ */ jsxs("div", { className: "space-y-1.5 px-4 py-2", children: [
|
|
6922
6979
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-full rounded-md" }),
|
|
@@ -6960,7 +7017,7 @@ function UserDropdownMenu() {
|
|
|
6960
7017
|
},
|
|
6961
7018
|
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
6962
7019
|
/* @__PURE__ */ jsx(LogOut, { className: "h-5 w-5 shrink-0" }),
|
|
6963
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "
|
|
7020
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: t("USER_DROPDOWN_MENU.LOG_OUT") })
|
|
6964
7021
|
] })
|
|
6965
7022
|
}
|
|
6966
7023
|
) })
|
|
@@ -6969,13 +7026,11 @@ function UserDropdownMenu() {
|
|
|
6969
7026
|
)
|
|
6970
7027
|
] });
|
|
6971
7028
|
}
|
|
6972
|
-
var languages = [
|
|
6973
|
-
{ key: "en", title: "English" },
|
|
6974
|
-
{ key: "de", title: "German" },
|
|
6975
|
-
{ key: "fr", title: "French" }
|
|
6976
|
-
];
|
|
6977
7029
|
function LanguageSelector() {
|
|
6978
|
-
const { changeLanguage
|
|
7030
|
+
const { changeLanguage } = useLanguageSwitcher();
|
|
7031
|
+
const language = useDocumentLanguage();
|
|
7032
|
+
const languages = useLanguagesStore((state) => state.languages);
|
|
7033
|
+
if (languages.length < 2) return null;
|
|
6979
7034
|
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
6980
7035
|
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
6981
7036
|
"button",
|
|
@@ -6988,18 +7043,18 @@ function LanguageSelector() {
|
|
|
6988
7043
|
]
|
|
6989
7044
|
}
|
|
6990
7045
|
) }),
|
|
6991
|
-
/* @__PURE__ */ jsx(DropdownMenuContent, { align: "end", children: languages.map((lang, index) => /* @__PURE__ */ jsxs(
|
|
7046
|
+
/* @__PURE__ */ jsx(DropdownMenuContent, { align: "end", children: languages.map((lang, index) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
6992
7047
|
/* @__PURE__ */ jsx(
|
|
6993
7048
|
DropdownMenuItem,
|
|
6994
7049
|
{
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
7050
|
+
lang: lang.code,
|
|
7051
|
+
className: lang.code === language ? "font-semibold" : "",
|
|
7052
|
+
onClick: () => changeLanguage(lang.code),
|
|
6998
7053
|
children: lang.title
|
|
6999
7054
|
}
|
|
7000
7055
|
),
|
|
7001
7056
|
index !== languages.length - 1 && /* @__PURE__ */ jsx(DropdownMenuSeparator, {})
|
|
7002
|
-
] }, lang.
|
|
7057
|
+
] }, lang.code)) })
|
|
7003
7058
|
] });
|
|
7004
7059
|
}
|
|
7005
7060
|
|
|
@@ -7261,24 +7316,27 @@ function NotificationBell({ unreadCount }) {
|
|
|
7261
7316
|
function NotificationHeader({
|
|
7262
7317
|
onMarkAllAsRead
|
|
7263
7318
|
}) {
|
|
7319
|
+
const { t } = useT("genesis.shared");
|
|
7264
7320
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b px-4 py-3", children: [
|
|
7265
|
-
/* @__PURE__ */ jsx("p", { className: "text-base font-semibold text-primary", children: "
|
|
7321
|
+
/* @__PURE__ */ jsx("p", { className: "text-base font-semibold text-primary", children: t("NOTIFICATION_HEADER.TITLE") }),
|
|
7266
7322
|
/* @__PURE__ */ jsx(
|
|
7267
7323
|
"button",
|
|
7268
7324
|
{
|
|
7269
7325
|
onClick: onMarkAllAsRead,
|
|
7270
7326
|
className: "text-xs text-muted-foreground hover:text-primary hover:underline",
|
|
7271
|
-
children: "
|
|
7327
|
+
children: t("NOTIFICATION_HEADER.MARK_ALL_READ")
|
|
7272
7328
|
}
|
|
7273
7329
|
)
|
|
7274
7330
|
] });
|
|
7275
7331
|
}
|
|
7276
7332
|
|
|
7277
7333
|
// src/components/common/notification/utils.ts
|
|
7278
|
-
|
|
7279
|
-
|
|
7334
|
+
var MODULE = "genesis.shared";
|
|
7335
|
+
var defaultT = (key, values) => tStatic(MODULE, key, values);
|
|
7336
|
+
function formatKBTitle(str, t = defaultT) {
|
|
7337
|
+
if (!str) return t("NOTIFICATION_UTILS.NO_TITLE");
|
|
7280
7338
|
if (str === "agent_kb_processing_status")
|
|
7281
|
-
return "
|
|
7339
|
+
return t("NOTIFICATION_UTILS.KB_STATUS_TITLE");
|
|
7282
7340
|
return str.split("_").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
|
|
7283
7341
|
}
|
|
7284
7342
|
function getKBMetaInfo(meta) {
|
|
@@ -7290,20 +7348,23 @@ function getKBMetaInfo(meta) {
|
|
|
7290
7348
|
}
|
|
7291
7349
|
return {};
|
|
7292
7350
|
}
|
|
7293
|
-
function formatKBMetaDescription(meta, fallbackDescription) {
|
|
7351
|
+
function formatKBMetaDescription(meta, fallbackDescription, t = defaultT) {
|
|
7294
7352
|
const { status, kb_id } = getKBMetaInfo(meta);
|
|
7295
|
-
const formattedStatus = status ?
|
|
7296
|
-
|
|
7353
|
+
const formattedStatus = status ? t("NOTIFICATION_UTILS.STATUS", {
|
|
7354
|
+
status: status.charAt(0).toUpperCase() + status.slice(1)
|
|
7355
|
+
}) : null;
|
|
7356
|
+
const formattedKbId = kb_id ? t("NOTIFICATION_UTILS.KB_ID", { id: kb_id.split("-")[0] ?? kb_id }) : null;
|
|
7297
7357
|
if (formattedStatus && formattedKbId)
|
|
7298
7358
|
return `${formattedStatus} | ${formattedKbId}`;
|
|
7299
7359
|
if (formattedStatus) return formattedStatus;
|
|
7300
7360
|
if (formattedKbId) return formattedKbId;
|
|
7301
|
-
return fallbackDescription || "
|
|
7361
|
+
return fallbackDescription || t("NOTIFICATION_UTILS.NO_DESCRIPTION");
|
|
7302
7362
|
}
|
|
7303
7363
|
function NotificationItem({
|
|
7304
7364
|
notification,
|
|
7305
7365
|
onMarkAsRead
|
|
7306
7366
|
}) {
|
|
7367
|
+
const { t, language } = useT("genesis.shared");
|
|
7307
7368
|
let denorm = {
|
|
7308
7369
|
title: "",
|
|
7309
7370
|
description: "",
|
|
@@ -7329,9 +7390,9 @@ function NotificationItem({
|
|
|
7329
7390
|
if (!notification.isRead) onMarkAsRead(notification.id);
|
|
7330
7391
|
},
|
|
7331
7392
|
children: /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
7332
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: formatKBTitle(denorm.title) }),
|
|
7333
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: formatKBMetaDescription(denorm.meta, denorm.description) }),
|
|
7334
|
-
notification.createdTime && /* @__PURE__ */ jsx("p", { className: "mt-1 text-[11px] text-muted-foreground", children: new Date(notification.createdTime).toLocaleString() })
|
|
7393
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: formatKBTitle(denorm.title, t) }),
|
|
7394
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: formatKBMetaDescription(denorm.meta, denorm.description, t) }),
|
|
7395
|
+
notification.createdTime && /* @__PURE__ */ jsx("p", { className: "mt-1 text-[11px] text-muted-foreground", children: new Date(notification.createdTime).toLocaleString(language) })
|
|
7335
7396
|
] })
|
|
7336
7397
|
}
|
|
7337
7398
|
);
|
|
@@ -7344,13 +7405,14 @@ function NotificationList({
|
|
|
7344
7405
|
onScroll,
|
|
7345
7406
|
onMarkAsRead
|
|
7346
7407
|
}) {
|
|
7408
|
+
const { t } = useT("genesis.shared");
|
|
7347
7409
|
const isEmpty = notifications.length === 0;
|
|
7348
7410
|
const renderNotifications = () => {
|
|
7349
7411
|
if (isLoading && isEmpty) {
|
|
7350
7412
|
return /* @__PURE__ */ jsx("div", { className: "p-4 text-center text-sm text-muted-foreground" });
|
|
7351
7413
|
}
|
|
7352
7414
|
if (isEmpty) {
|
|
7353
|
-
return /* @__PURE__ */ jsx("div", { className: "p-4 text-center text-sm text-muted-foreground", children: "
|
|
7415
|
+
return /* @__PURE__ */ jsx("div", { className: "p-4 text-center text-sm text-muted-foreground", children: t("NOTIFICATION_LIST.EMPTY") });
|
|
7354
7416
|
}
|
|
7355
7417
|
return notifications.map((notification, idx) => /* @__PURE__ */ jsx(
|
|
7356
7418
|
NotificationItem,
|
|
@@ -7369,7 +7431,7 @@ function NotificationList({
|
|
|
7369
7431
|
onScroll,
|
|
7370
7432
|
children: [
|
|
7371
7433
|
renderNotifications(),
|
|
7372
|
-
isFetching && !isEmpty && /* @__PURE__ */ jsx("div", { className: "p-2 text-center text-xs text-muted-foreground", children: "
|
|
7434
|
+
isFetching && !isEmpty && /* @__PURE__ */ jsx("div", { className: "p-2 text-center text-xs text-muted-foreground", children: t("common:LOADING") })
|
|
7373
7435
|
]
|
|
7374
7436
|
}
|
|
7375
7437
|
);
|
|
@@ -7539,54 +7601,87 @@ function DashboardHeader(props) {
|
|
|
7539
7601
|
}
|
|
7540
7602
|
|
|
7541
7603
|
// src/constants/environment-options.ts
|
|
7604
|
+
var MODULE2 = "genesis.shared";
|
|
7542
7605
|
var environmentOptions = [
|
|
7543
7606
|
{
|
|
7544
7607
|
index: 0,
|
|
7545
|
-
label
|
|
7608
|
+
get label() {
|
|
7609
|
+
return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.DEV_LABEL");
|
|
7610
|
+
},
|
|
7546
7611
|
value: "dev",
|
|
7547
|
-
subtext
|
|
7612
|
+
get subtext() {
|
|
7613
|
+
return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.DEV_SUBTEXT");
|
|
7614
|
+
}
|
|
7548
7615
|
},
|
|
7549
7616
|
{
|
|
7550
7617
|
index: 1,
|
|
7551
|
-
label
|
|
7618
|
+
get label() {
|
|
7619
|
+
return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.TEST_LABEL");
|
|
7620
|
+
},
|
|
7552
7621
|
value: "test",
|
|
7553
|
-
subtext
|
|
7622
|
+
get subtext() {
|
|
7623
|
+
return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.TEST_SUBTEXT");
|
|
7624
|
+
}
|
|
7554
7625
|
},
|
|
7555
7626
|
{
|
|
7556
7627
|
index: 2,
|
|
7557
|
-
label
|
|
7628
|
+
get label() {
|
|
7629
|
+
return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.STG_LABEL");
|
|
7630
|
+
},
|
|
7558
7631
|
value: "stg",
|
|
7559
|
-
subtext
|
|
7632
|
+
get subtext() {
|
|
7633
|
+
return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.STG_SUBTEXT");
|
|
7634
|
+
}
|
|
7560
7635
|
},
|
|
7561
7636
|
{
|
|
7562
7637
|
index: 3,
|
|
7563
|
-
label
|
|
7638
|
+
get label() {
|
|
7639
|
+
return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.IAT_LABEL");
|
|
7640
|
+
},
|
|
7564
7641
|
value: "iat",
|
|
7565
|
-
subtext
|
|
7642
|
+
get subtext() {
|
|
7643
|
+
return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.IAT_SUBTEXT");
|
|
7644
|
+
}
|
|
7566
7645
|
},
|
|
7567
7646
|
{
|
|
7568
7647
|
index: 4,
|
|
7569
|
-
label
|
|
7648
|
+
get label() {
|
|
7649
|
+
return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.UAT_LABEL");
|
|
7650
|
+
},
|
|
7570
7651
|
value: "uat",
|
|
7571
|
-
subtext
|
|
7652
|
+
get subtext() {
|
|
7653
|
+
return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.UAT_SUBTEXT");
|
|
7654
|
+
}
|
|
7572
7655
|
},
|
|
7573
7656
|
{
|
|
7574
7657
|
index: 5,
|
|
7575
|
-
label
|
|
7658
|
+
get label() {
|
|
7659
|
+
return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.PROD_SHADOW_LABEL");
|
|
7660
|
+
},
|
|
7576
7661
|
value: "prod-shadow",
|
|
7577
|
-
subtext
|
|
7662
|
+
get subtext() {
|
|
7663
|
+
return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.PROD_SHADOW_SUBTEXT");
|
|
7664
|
+
}
|
|
7578
7665
|
},
|
|
7579
7666
|
{
|
|
7580
7667
|
index: 6,
|
|
7581
|
-
label
|
|
7668
|
+
get label() {
|
|
7669
|
+
return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.PRE_PROD_LABEL");
|
|
7670
|
+
},
|
|
7582
7671
|
value: "pre-prod",
|
|
7583
|
-
subtext
|
|
7672
|
+
get subtext() {
|
|
7673
|
+
return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.PRE_PROD_SUBTEXT");
|
|
7674
|
+
}
|
|
7584
7675
|
},
|
|
7585
7676
|
{
|
|
7586
7677
|
index: 7,
|
|
7587
|
-
label
|
|
7678
|
+
get label() {
|
|
7679
|
+
return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.PROD_LABEL");
|
|
7680
|
+
},
|
|
7588
7681
|
value: "prod",
|
|
7589
|
-
subtext
|
|
7682
|
+
get subtext() {
|
|
7683
|
+
return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.PROD_SUBTEXT");
|
|
7684
|
+
}
|
|
7590
7685
|
}
|
|
7591
7686
|
];
|
|
7592
7687
|
var EnvironmentCard = ({
|
|
@@ -7594,6 +7689,7 @@ var EnvironmentCard = ({
|
|
|
7594
7689
|
isMigrationOngoing,
|
|
7595
7690
|
className
|
|
7596
7691
|
}) => {
|
|
7692
|
+
const { t } = useT("genesis.shared");
|
|
7597
7693
|
const { setSelectedProject, setTenantGroup } = useProjectStore();
|
|
7598
7694
|
const { mutateAsync } = useStartImpersonation();
|
|
7599
7695
|
const navigate = useNavigate();
|
|
@@ -7620,7 +7716,7 @@ var EnvironmentCard = ({
|
|
|
7620
7716
|
)?.label }),
|
|
7621
7717
|
isMigrationOngoing && /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
7622
7718
|
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(HourglassIcon, { className: "text-icon-warning h-4 w-4 cursor-pointer" }) }),
|
|
7623
|
-
/* @__PURE__ */ jsx(TooltipContent, { className: "border-none bg-neutral-500 text-white shadow-none", children: "
|
|
7719
|
+
/* @__PURE__ */ jsx(TooltipContent, { className: "border-none bg-neutral-500 text-white shadow-none", children: t("ENVIRONMENT_CARD.MIGRATION") })
|
|
7624
7720
|
] }) })
|
|
7625
7721
|
] }) }),
|
|
7626
7722
|
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "h-4 w-4 opacity-0 transition-opacity duration-200 group-hover:opacity-100" })
|
|
@@ -7647,6 +7743,7 @@ function EnvironmentList({
|
|
|
7647
7743
|
redirectPaths,
|
|
7648
7744
|
collapsed = false
|
|
7649
7745
|
}) {
|
|
7746
|
+
const { t } = useT("genesis.shared");
|
|
7650
7747
|
const navigate = useNavigate();
|
|
7651
7748
|
const { pathname } = useLocation();
|
|
7652
7749
|
const { data: projectGroups = [], isLoading } = useGetProjects({
|
|
@@ -7690,7 +7787,7 @@ function EnvironmentList({
|
|
|
7690
7787
|
const environment = projectData?.data?.environment || selectedProject?.environment;
|
|
7691
7788
|
const applicationDomain = projectData?.data?.customDomain || selectedProject?.customDomain;
|
|
7692
7789
|
const environmentDomainSuffix = applicationDomain ? ` \xB7 ${applicationDomain}` : "";
|
|
7693
|
-
const environmentLabel = environment ? `${environment}${environmentDomainSuffix}` : "
|
|
7790
|
+
const environmentLabel = environment ? `${environment}${environmentDomainSuffix}` : t("ENVIRONMENT_LIST.SELECT_ENVIRONMENT");
|
|
7694
7791
|
const projects = useMemo(() => {
|
|
7695
7792
|
if (!selectedProject) return [];
|
|
7696
7793
|
const groupWithSelected = projectGroups.find(
|
|
@@ -7719,8 +7816,8 @@ function EnvironmentList({
|
|
|
7719
7816
|
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5", children: [
|
|
7720
7817
|
/* @__PURE__ */ jsx(Globe, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
|
|
7721
7818
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col items-start", children: [
|
|
7722
|
-
/* @__PURE__ */ jsx("div", { className: "text-[11px] font-medium uppercase tracking-wide text-muted-foreground", children: "
|
|
7723
|
-
environment ? /* @__PURE__ */ jsx("div", { className: "flex min-w-0 items-center gap-1 leading-tight", children: /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-sm bg-[hsl(var(--blocks-primary-50))] px-1.5 py-0.5 text-[11px] font-semibold leading-none text-[hsl(var(--high-emphasis))]", children: environment }) }) : /* @__PURE__ */ jsx("span", { className: "text-sm leading-tight", children: "
|
|
7819
|
+
/* @__PURE__ */ jsx("div", { className: "text-[11px] font-medium uppercase tracking-wide text-muted-foreground", children: t("ENVIRONMENT_LIST.ENVIRONMENT") }),
|
|
7820
|
+
environment ? /* @__PURE__ */ jsx("div", { className: "flex min-w-0 items-center gap-1 leading-tight", children: /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-sm bg-[hsl(var(--blocks-primary-50))] px-1.5 py-0.5 text-[11px] font-semibold leading-none text-[hsl(var(--high-emphasis))]", children: environment }) }) : /* @__PURE__ */ jsx("span", { className: "text-sm leading-tight", children: t("ENVIRONMENT_LIST.SELECT_ENVIRONMENT") })
|
|
7724
7821
|
] })
|
|
7725
7822
|
] })
|
|
7726
7823
|
}
|
|
@@ -7733,11 +7830,11 @@ function EnvironmentList({
|
|
|
7733
7830
|
sideOffset: collapsed ? 8 : 4,
|
|
7734
7831
|
className: collapsed ? "min-w-48" : "w-[--radix-dropdown-menu-trigger-width]",
|
|
7735
7832
|
children: [
|
|
7736
|
-
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: "
|
|
7833
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: t("ENVIRONMENT_LIST.YOUR_ENVIRONMENTS") }),
|
|
7737
7834
|
(() => {
|
|
7738
7835
|
const others = projects.filter((project) => project.itemId !== selectedProject?.itemId).slice(0, 5);
|
|
7739
7836
|
if (others.length === 0) {
|
|
7740
|
-
return /* @__PURE__ */ jsx(DropdownMenuItem, { disabled: true, children: /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: "
|
|
7837
|
+
return /* @__PURE__ */ jsx(DropdownMenuItem, { disabled: true, children: /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: t("ENVIRONMENT_LIST.NO_OTHERS") }) });
|
|
7741
7838
|
}
|
|
7742
7839
|
return others.map((project) => /* @__PURE__ */ jsx(
|
|
7743
7840
|
DropdownMenuItem,
|
|
@@ -7749,21 +7846,22 @@ function EnvironmentList({
|
|
|
7749
7846
|
));
|
|
7750
7847
|
})(),
|
|
7751
7848
|
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
7752
|
-
/* @__PURE__ */ jsx(DropdownMenuItem, { disabled: true, children: "
|
|
7849
|
+
/* @__PURE__ */ jsx(DropdownMenuItem, { disabled: true, children: t("ENVIRONMENT_LIST.OVERVIEW_UNAVAILABLE") })
|
|
7753
7850
|
]
|
|
7754
7851
|
}
|
|
7755
7852
|
)
|
|
7756
7853
|
] });
|
|
7757
7854
|
}
|
|
7758
7855
|
function BackToConsoleNavigator() {
|
|
7856
|
+
const { t } = useT("genesis.shared");
|
|
7759
7857
|
return /* @__PURE__ */ jsx(Link, { to: "console", children: /* @__PURE__ */ jsxs(
|
|
7760
7858
|
Button,
|
|
7761
7859
|
{
|
|
7762
7860
|
variant: "outline",
|
|
7763
7861
|
className: "bg-transparent hover:bg-slate-200 dark:hover:bg-gray-800",
|
|
7764
7862
|
children: [
|
|
7765
|
-
/* @__PURE__ */ jsx("div", { className: "hidden flex-row items-center md:flex", children: "
|
|
7766
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-row items-center text-xs md:hidden", children: "
|
|
7863
|
+
/* @__PURE__ */ jsx("div", { className: "hidden flex-row items-center md:flex", children: t("BACK_TO_CONSOLE_NAVIGATOR.BACK") }),
|
|
7864
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-row items-center text-xs md:hidden", children: t("BACK_TO_CONSOLE_NAVIGATOR.CONSOLE") })
|
|
7767
7865
|
]
|
|
7768
7866
|
}
|
|
7769
7867
|
) });
|
|
@@ -7916,6 +8014,7 @@ var AppLoadingSpinner = ({ size = 64 }) => /* @__PURE__ */ jsxs(Fragment, { chil
|
|
|
7916
8014
|
` }),
|
|
7917
8015
|
/* @__PURE__ */ jsx("div", { className: "bg-background fixed inset-0 z-50 flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "animate-breathe", children: /* @__PURE__ */ jsx(BlocksIcon, { size }) }) })
|
|
7918
8016
|
] });
|
|
8017
|
+
var GENESIS_SHARED_MODULE = "genesis.shared";
|
|
7919
8018
|
var projectNameFor = (projects, tenantId) => tenantId && projects.find((p) => p.tenantId === tenantId)?.name || null;
|
|
7920
8019
|
var claimKeyOf = (claim) => claim ? `${claim.tabId}|${claim.tenantId}|${claim.ts}` : null;
|
|
7921
8020
|
var SESSION_ENDED_CODES = /* @__PURE__ */ new Set([
|
|
@@ -7986,6 +8085,7 @@ function ImpersonationBlocked({
|
|
|
7986
8085
|
onSecondary,
|
|
7987
8086
|
consolePath
|
|
7988
8087
|
}) {
|
|
8088
|
+
const { t } = useT(GENESIS_SHARED_MODULE);
|
|
7989
8089
|
const navigate = useNavigate();
|
|
7990
8090
|
return /* @__PURE__ */ jsxs("div", { className: "flex h-full min-h-[320px] w-full flex-col items-center justify-center gap-4 p-8 text-center", children: [
|
|
7991
8091
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
@@ -8000,7 +8100,7 @@ function ImpersonationBlocked({
|
|
|
8000
8100
|
{
|
|
8001
8101
|
variant: primaryLabel && onPrimary ? "outline" : "default",
|
|
8002
8102
|
onClick: () => navigate(consolePath),
|
|
8003
|
-
children: "
|
|
8103
|
+
children: t("IMPERSONATION_GUARD.GO_TO_CONSOLE")
|
|
8004
8104
|
}
|
|
8005
8105
|
)
|
|
8006
8106
|
] })
|
|
@@ -8052,6 +8152,7 @@ function ImpersonationTerminator({
|
|
|
8052
8152
|
const [returnFailure, setReturnFailure] = useState(
|
|
8053
8153
|
null
|
|
8054
8154
|
);
|
|
8155
|
+
const { t } = useT(GENESIS_SHARED_MODULE);
|
|
8055
8156
|
const signOut = useSignOut();
|
|
8056
8157
|
useEffect(() => {
|
|
8057
8158
|
if (!isImpersonated) setReturnFailure(null);
|
|
@@ -8098,9 +8199,9 @@ function ImpersonationTerminator({
|
|
|
8098
8199
|
return /* @__PURE__ */ jsx(
|
|
8099
8200
|
ImpersonationBlocked,
|
|
8100
8201
|
{
|
|
8101
|
-
title: name ?
|
|
8102
|
-
description: "
|
|
8103
|
-
primaryLabel: name ?
|
|
8202
|
+
title: name ? t("IMPERSONATION_GUARD.DETACHED_TITLE_NAMED", { name }) : t("IMPERSONATION_GUARD.DETACHED_TITLE"),
|
|
8203
|
+
description: t("IMPERSONATION_GUARD.DETACHED_DESCRIPTION"),
|
|
8204
|
+
primaryLabel: name ? t("IMPERSONATION_GUARD.LEAVE_NAMED", { name }) : t("IMPERSONATION_GUARD.LEAVE"),
|
|
8104
8205
|
onPrimary: () => {
|
|
8105
8206
|
setReturnFailure(null);
|
|
8106
8207
|
setDetached(null);
|
|
@@ -8112,9 +8213,9 @@ function ImpersonationTerminator({
|
|
|
8112
8213
|
return /* @__PURE__ */ jsx(
|
|
8113
8214
|
ImpersonationBlocked,
|
|
8114
8215
|
{
|
|
8115
|
-
title: "
|
|
8116
|
-
description: "
|
|
8117
|
-
primaryLabel: "
|
|
8216
|
+
title: t("IMPERSONATION_GUARD.SESSION_ENDED_TITLE"),
|
|
8217
|
+
description: t("IMPERSONATION_GUARD.SESSION_ENDED_DESCRIPTION"),
|
|
8218
|
+
primaryLabel: t("IMPERSONATION_GUARD.SIGN_IN_AGAIN"),
|
|
8118
8219
|
onPrimary: signOut
|
|
8119
8220
|
}
|
|
8120
8221
|
);
|
|
@@ -8124,17 +8225,17 @@ function ImpersonationTerminator({
|
|
|
8124
8225
|
return /* @__PURE__ */ jsx(
|
|
8125
8226
|
ImpersonationBlocked,
|
|
8126
8227
|
{
|
|
8127
|
-
title:
|
|
8128
|
-
description: name ?
|
|
8129
|
-
primaryLabel: "
|
|
8228
|
+
title: t("IMPERSONATION_GUARD.RETURN_FAILED_TITLE"),
|
|
8229
|
+
description: name ? t("IMPERSONATION_GUARD.RETURN_FAILED_NAMED", { name }) : t("IMPERSONATION_GUARD.RETURN_FAILED"),
|
|
8230
|
+
primaryLabel: t("IMPERSONATION_GUARD.TRY_AGAIN"),
|
|
8130
8231
|
onPrimary: () => setReturnFailure(null),
|
|
8131
|
-
secondaryLabel: "
|
|
8232
|
+
secondaryLabel: t("IMPERSONATION_GUARD.SIGN_OUT"),
|
|
8132
8233
|
onSecondary: signOut
|
|
8133
8234
|
}
|
|
8134
8235
|
);
|
|
8135
8236
|
}
|
|
8136
8237
|
if (isImpersonated || isTerminating) {
|
|
8137
|
-
return /* @__PURE__ */ jsx(ImpersonationWaiting, { label: "
|
|
8238
|
+
return /* @__PURE__ */ jsx(ImpersonationWaiting, { label: t("IMPERSONATION_GUARD.RETURNING") });
|
|
8138
8239
|
}
|
|
8139
8240
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
8140
8241
|
}
|
|
@@ -8152,6 +8253,7 @@ function ImpersonationSynchronizer({
|
|
|
8152
8253
|
setImpersonationError,
|
|
8153
8254
|
setDetached
|
|
8154
8255
|
} = useImpersonateStore();
|
|
8256
|
+
const { t } = useT(GENESIS_SHARED_MODULE);
|
|
8155
8257
|
const { mutateAsync } = useStartImpersonation();
|
|
8156
8258
|
const recordClaimedTenant = useRecordClaimedTenant();
|
|
8157
8259
|
const { data: _data } = useGetProjects({ enabled: true });
|
|
@@ -8291,7 +8393,7 @@ function ImpersonationSynchronizer({
|
|
|
8291
8393
|
return /* @__PURE__ */ jsx(
|
|
8292
8394
|
ImpersonationWaiting,
|
|
8293
8395
|
{
|
|
8294
|
-
label: thisProjectName ?
|
|
8396
|
+
label: thisProjectName ? t("IMPERSONATION_GUARD.OPENING_NAMED", { name: thisProjectName }) : t("IMPERSONATION_GUARD.OPENING")
|
|
8295
8397
|
}
|
|
8296
8398
|
);
|
|
8297
8399
|
}
|
|
@@ -8303,7 +8405,7 @@ function ImpersonationSynchronizer({
|
|
|
8303
8405
|
return /* @__PURE__ */ jsx(
|
|
8304
8406
|
ImpersonationWaiting,
|
|
8305
8407
|
{
|
|
8306
|
-
label: thisProjectName ?
|
|
8408
|
+
label: thisProjectName ? t("IMPERSONATION_GUARD.OPENING_NAMED", { name: thisProjectName }) : t("IMPERSONATION_GUARD.OPENING")
|
|
8307
8409
|
}
|
|
8308
8410
|
);
|
|
8309
8411
|
}
|
|
@@ -8312,16 +8414,20 @@ function ImpersonationSynchronizer({
|
|
|
8312
8414
|
return accessDenied ? /* @__PURE__ */ jsx(
|
|
8313
8415
|
ImpersonationBlocked,
|
|
8314
8416
|
{
|
|
8315
|
-
title: thisProjectName ?
|
|
8316
|
-
|
|
8417
|
+
title: thisProjectName ? t("IMPERSONATION_GUARD.NO_ACCESS_NAMED", {
|
|
8418
|
+
name: thisProjectName
|
|
8419
|
+
}) : t("IMPERSONATION_GUARD.NO_ACCESS"),
|
|
8420
|
+
description: t("IMPERSONATION_GUARD.NO_ACCESS_DESCRIPTION"),
|
|
8317
8421
|
consolePath
|
|
8318
8422
|
}
|
|
8319
8423
|
) : /* @__PURE__ */ jsx(
|
|
8320
8424
|
ImpersonationBlocked,
|
|
8321
8425
|
{
|
|
8322
|
-
title: thisProjectName ?
|
|
8323
|
-
|
|
8324
|
-
|
|
8426
|
+
title: thisProjectName ? t("IMPERSONATION_GUARD.OPEN_FAILED_NAMED", {
|
|
8427
|
+
name: thisProjectName
|
|
8428
|
+
}) : t("IMPERSONATION_GUARD.OPEN_FAILED"),
|
|
8429
|
+
description: t("IMPERSONATION_GUARD.OPEN_FAILED_DESCRIPTION"),
|
|
8430
|
+
primaryLabel: t("IMPERSONATION_GUARD.TRY_AGAIN"),
|
|
8325
8431
|
onPrimary: takeSession,
|
|
8326
8432
|
consolePath
|
|
8327
8433
|
}
|
|
@@ -8331,9 +8437,11 @@ function ImpersonationSynchronizer({
|
|
|
8331
8437
|
return /* @__PURE__ */ jsx(
|
|
8332
8438
|
ImpersonationBlocked,
|
|
8333
8439
|
{
|
|
8334
|
-
title: "
|
|
8335
|
-
description: thisProjectName ?
|
|
8336
|
-
|
|
8440
|
+
title: t("IMPERSONATION_GUARD.CONSOLE_RETURNED_TITLE"),
|
|
8441
|
+
description: thisProjectName ? t("IMPERSONATION_GUARD.CONSOLE_RETURNED_NAMED", {
|
|
8442
|
+
name: thisProjectName
|
|
8443
|
+
}) : t("IMPERSONATION_GUARD.CONSOLE_RETURNED"),
|
|
8444
|
+
primaryLabel: thisProjectName ? t("IMPERSONATION_GUARD.REOPEN_NAMED", { name: thisProjectName }) : t("IMPERSONATION_GUARD.REOPEN"),
|
|
8337
8445
|
onPrimary: takeSession,
|
|
8338
8446
|
consolePath
|
|
8339
8447
|
}
|
|
@@ -8344,21 +8452,27 @@ function ImpersonationSynchronizer({
|
|
|
8344
8452
|
return /* @__PURE__ */ jsx(
|
|
8345
8453
|
ImpersonationBlocked,
|
|
8346
8454
|
{
|
|
8347
|
-
title: "
|
|
8348
|
-
description: otherName ?
|
|
8349
|
-
|
|
8455
|
+
title: t("IMPERSONATION_GUARD.ANOTHER_PROJECT_TITLE"),
|
|
8456
|
+
description: otherName ? t("IMPERSONATION_GUARD.ANOTHER_PROJECT_NAMED", {
|
|
8457
|
+
name: otherName
|
|
8458
|
+
}) : t("IMPERSONATION_GUARD.ANOTHER_PROJECT"),
|
|
8459
|
+
primaryLabel: thisProjectName ? t("IMPERSONATION_GUARD.CONTINUE_NAMED", {
|
|
8460
|
+
name: thisProjectName
|
|
8461
|
+
}) : t("IMPERSONATION_GUARD.CONTINUE"),
|
|
8350
8462
|
onPrimary: takeSession,
|
|
8351
8463
|
consolePath
|
|
8352
8464
|
}
|
|
8353
8465
|
);
|
|
8354
8466
|
}
|
|
8355
8467
|
if (!routeTenantId)
|
|
8356
|
-
return /* @__PURE__ */ jsx(ImpersonationWaiting, { label: "
|
|
8468
|
+
return /* @__PURE__ */ jsx(ImpersonationWaiting, { label: t("IMPERSONATION_GUARD.LOADING_PROJECTS") });
|
|
8357
8469
|
if (routeTenantId !== impersonatedTenantId) {
|
|
8358
8470
|
return /* @__PURE__ */ jsx(
|
|
8359
8471
|
ImpersonationWaiting,
|
|
8360
8472
|
{
|
|
8361
|
-
label: thisProjectName ?
|
|
8473
|
+
label: thisProjectName ? t("IMPERSONATION_GUARD.SWITCHING_NAMED", {
|
|
8474
|
+
name: thisProjectName
|
|
8475
|
+
}) : t("IMPERSONATION_GUARD.SWITCHING")
|
|
8362
8476
|
}
|
|
8363
8477
|
);
|
|
8364
8478
|
}
|
|
@@ -8468,6 +8582,7 @@ var LoginHeader = ({
|
|
|
8468
8582
|
blocksUrl = "https://seliseblocks.com",
|
|
8469
8583
|
githubUrl = "https://github.com/SELISEdigitalplatforms"
|
|
8470
8584
|
}) => {
|
|
8585
|
+
const { t } = useT("genesis.shared");
|
|
8471
8586
|
const {
|
|
8472
8587
|
config: { appLogoUrl }
|
|
8473
8588
|
} = useBlocksAppConfigStore((state) => state);
|
|
@@ -8490,7 +8605,7 @@ var LoginHeader = ({
|
|
|
8490
8605
|
}
|
|
8491
8606
|
),
|
|
8492
8607
|
/* @__PURE__ */ jsxs("div", { className: "nav-right", children: [
|
|
8493
|
-
/* @__PURE__ */ jsx("a", { href: docsUrl, target: "_blank", rel: "noreferrer", className: "nav-link", children: "
|
|
8608
|
+
/* @__PURE__ */ jsx("a", { href: docsUrl, target: "_blank", rel: "noreferrer", className: "nav-link", children: t("LOGIN_HEADER.DOCS") }),
|
|
8494
8609
|
/* @__PURE__ */ jsx(
|
|
8495
8610
|
"a",
|
|
8496
8611
|
{
|
|
@@ -9131,32 +9246,35 @@ function useAtmosphericCanvas(canvasRef) {
|
|
|
9131
9246
|
}
|
|
9132
9247
|
|
|
9133
9248
|
// src/pages/login/login.constant.ts
|
|
9134
|
-
var
|
|
9249
|
+
var VISIT_KEY = "LOGIN_CONSTANT.VISIT";
|
|
9250
|
+
var getBlocksProducts = (t) => [
|
|
9135
9251
|
{
|
|
9136
9252
|
name: "blocks-os",
|
|
9137
9253
|
appName: "blocks OS",
|
|
9138
|
-
badge: "
|
|
9139
|
-
tagline: "
|
|
9140
|
-
descriptionTitle: "
|
|
9254
|
+
badge: t("LOGIN_CONSTANT.OS_BADGE"),
|
|
9255
|
+
tagline: t("LOGIN_CONSTANT.OS_TAGLINE"),
|
|
9256
|
+
descriptionTitle: t("LOGIN_CONSTANT.OS_TITLE"),
|
|
9257
|
+
// Not shown in the UI.
|
|
9141
9258
|
keywords: ["secure", "isolated", "auditable"],
|
|
9142
|
-
shortDescription: "
|
|
9143
|
-
description: "
|
|
9259
|
+
shortDescription: t("LOGIN_CONSTANT.OS_SHORT"),
|
|
9260
|
+
description: t("LOGIN_CONSTANT.OS_DESCRIPTION"),
|
|
9144
9261
|
featureChips: [
|
|
9145
|
-
"
|
|
9146
|
-
"
|
|
9147
|
-
"
|
|
9148
|
-
"
|
|
9149
|
-
"
|
|
9262
|
+
t("LOGIN_CONSTANT.OS_CHIP_1"),
|
|
9263
|
+
t("LOGIN_CONSTANT.OS_CHIP_2"),
|
|
9264
|
+
t("LOGIN_CONSTANT.OS_CHIP_3"),
|
|
9265
|
+
t("LOGIN_CONSTANT.OS_CHIP_4"),
|
|
9266
|
+
t("LOGIN_CONSTANT.OS_CHIP_5")
|
|
9150
9267
|
],
|
|
9151
9268
|
url: "",
|
|
9152
|
-
cta: "
|
|
9269
|
+
cta: t(VISIT_KEY, { name: "blocks OS" })
|
|
9153
9270
|
},
|
|
9154
9271
|
{
|
|
9155
9272
|
name: "blocks-localization",
|
|
9156
9273
|
appName: "blocks Localization",
|
|
9157
|
-
badge: "
|
|
9158
|
-
tagline: "
|
|
9159
|
-
descriptionTitle: "
|
|
9274
|
+
badge: t("LOGIN_CONSTANT.LOCALIZATION_BADGE"),
|
|
9275
|
+
tagline: t("LOGIN_CONSTANT.LOCALIZATION_TAGLINE"),
|
|
9276
|
+
descriptionTitle: t("LOGIN_CONSTANT.LOCALIZATION_TITLE"),
|
|
9277
|
+
// Not shown in the UI.
|
|
9160
9278
|
keywords: [
|
|
9161
9279
|
"multilingual",
|
|
9162
9280
|
"contextual",
|
|
@@ -9164,42 +9282,44 @@ var BLOCKS_PRODUCTS = [
|
|
|
9164
9282
|
"instant",
|
|
9165
9283
|
"scalable"
|
|
9166
9284
|
],
|
|
9167
|
-
shortDescription: "
|
|
9168
|
-
description: "
|
|
9285
|
+
shortDescription: t("LOGIN_CONSTANT.LOCALIZATION_SHORT"),
|
|
9286
|
+
description: t("LOGIN_CONSTANT.LOCALIZATION_DESCRIPTION"),
|
|
9169
9287
|
featureChips: [
|
|
9170
|
-
"
|
|
9171
|
-
"
|
|
9172
|
-
"
|
|
9173
|
-
"
|
|
9288
|
+
t("LOGIN_CONSTANT.LOCALIZATION_CHIP_1"),
|
|
9289
|
+
t("LOGIN_CONSTANT.LOCALIZATION_CHIP_2"),
|
|
9290
|
+
t("LOGIN_CONSTANT.LOCALIZATION_CHIP_3"),
|
|
9291
|
+
t("LOGIN_CONSTANT.LOCALIZATION_CHIP_4")
|
|
9174
9292
|
],
|
|
9175
9293
|
url: "",
|
|
9176
|
-
cta: "
|
|
9294
|
+
cta: t(VISIT_KEY, { name: "blocks Localization" })
|
|
9177
9295
|
},
|
|
9178
9296
|
{
|
|
9179
9297
|
name: "blocks-iam",
|
|
9180
9298
|
appName: "blocks IAM",
|
|
9181
|
-
badge: "
|
|
9182
|
-
tagline: "
|
|
9183
|
-
descriptionTitle: "
|
|
9299
|
+
badge: t("LOGIN_CONSTANT.IAM_BADGE"),
|
|
9300
|
+
tagline: t("LOGIN_CONSTANT.IAM_TAGLINE"),
|
|
9301
|
+
descriptionTitle: t("LOGIN_CONSTANT.IAM_TITLE"),
|
|
9302
|
+
// Not shown in the UI.
|
|
9184
9303
|
keywords: ["secure", "unified", "seamless"],
|
|
9185
|
-
shortDescription: "
|
|
9186
|
-
description: "
|
|
9304
|
+
shortDescription: t("LOGIN_CONSTANT.IAM_SHORT"),
|
|
9305
|
+
description: t("LOGIN_CONSTANT.IAM_DESCRIPTION"),
|
|
9187
9306
|
featureChips: [
|
|
9188
|
-
"
|
|
9189
|
-
"
|
|
9190
|
-
"
|
|
9191
|
-
"
|
|
9192
|
-
"
|
|
9307
|
+
t("LOGIN_CONSTANT.IAM_CHIP_1"),
|
|
9308
|
+
t("LOGIN_CONSTANT.IAM_CHIP_2"),
|
|
9309
|
+
t("LOGIN_CONSTANT.IAM_CHIP_3"),
|
|
9310
|
+
t("LOGIN_CONSTANT.IAM_CHIP_4"),
|
|
9311
|
+
t("LOGIN_CONSTANT.IAM_CHIP_5")
|
|
9193
9312
|
],
|
|
9194
9313
|
url: "",
|
|
9195
|
-
cta: "
|
|
9314
|
+
cta: t(VISIT_KEY, { name: "blocks IAM" })
|
|
9196
9315
|
},
|
|
9197
9316
|
{
|
|
9198
9317
|
name: "blocks-data",
|
|
9199
9318
|
appName: "blocks Data",
|
|
9200
|
-
badge: "
|
|
9201
|
-
tagline: "
|
|
9202
|
-
descriptionTitle: "
|
|
9319
|
+
badge: t("LOGIN_CONSTANT.DATA_BADGE"),
|
|
9320
|
+
tagline: t("LOGIN_CONSTANT.DATA_TAGLINE"),
|
|
9321
|
+
descriptionTitle: t("LOGIN_CONSTANT.DATA_TITLE"),
|
|
9322
|
+
// Not shown in the UI.
|
|
9203
9323
|
keywords: [
|
|
9204
9324
|
"queryable",
|
|
9205
9325
|
"structured",
|
|
@@ -9207,43 +9327,45 @@ var BLOCKS_PRODUCTS = [
|
|
|
9207
9327
|
"versioned",
|
|
9208
9328
|
"accessible"
|
|
9209
9329
|
],
|
|
9210
|
-
shortDescription: "
|
|
9211
|
-
description: "
|
|
9330
|
+
shortDescription: t("LOGIN_CONSTANT.DATA_SHORT"),
|
|
9331
|
+
description: t("LOGIN_CONSTANT.DATA_DESCRIPTION"),
|
|
9212
9332
|
featureChips: [
|
|
9213
|
-
"
|
|
9214
|
-
"
|
|
9215
|
-
"
|
|
9216
|
-
"
|
|
9217
|
-
"
|
|
9333
|
+
t("LOGIN_CONSTANT.DATA_CHIP_1"),
|
|
9334
|
+
t("LOGIN_CONSTANT.DATA_CHIP_2"),
|
|
9335
|
+
t("LOGIN_CONSTANT.DATA_CHIP_3"),
|
|
9336
|
+
t("LOGIN_CONSTANT.DATA_CHIP_4"),
|
|
9337
|
+
t("LOGIN_CONSTANT.DATA_CHIP_5")
|
|
9218
9338
|
],
|
|
9219
9339
|
url: "",
|
|
9220
|
-
cta: "
|
|
9340
|
+
cta: t(VISIT_KEY, { name: "blocks Data" })
|
|
9221
9341
|
},
|
|
9222
9342
|
{
|
|
9223
9343
|
name: "blocks-logic",
|
|
9224
9344
|
appName: "blocks Logic",
|
|
9225
|
-
badge: "
|
|
9226
|
-
tagline: "
|
|
9227
|
-
descriptionTitle: "
|
|
9345
|
+
badge: t("LOGIN_CONSTANT.LOGIC_BADGE"),
|
|
9346
|
+
tagline: t("LOGIN_CONSTANT.LOGIC_TAGLINE"),
|
|
9347
|
+
descriptionTitle: t("LOGIN_CONSTANT.LOGIC_TITLE"),
|
|
9348
|
+
// Not shown in the UI.
|
|
9228
9349
|
keywords: ["visual", "automated", "event-driven", "codeless"],
|
|
9229
|
-
shortDescription: "
|
|
9230
|
-
description: "
|
|
9350
|
+
shortDescription: t("LOGIN_CONSTANT.LOGIC_SHORT"),
|
|
9351
|
+
description: t("LOGIN_CONSTANT.LOGIC_DESCRIPTION"),
|
|
9231
9352
|
featureChips: [
|
|
9232
|
-
"
|
|
9233
|
-
"
|
|
9234
|
-
"
|
|
9235
|
-
"
|
|
9236
|
-
"
|
|
9353
|
+
t("LOGIN_CONSTANT.LOGIC_CHIP_1"),
|
|
9354
|
+
t("LOGIN_CONSTANT.LOGIC_CHIP_2"),
|
|
9355
|
+
t("LOGIN_CONSTANT.LOGIC_CHIP_3"),
|
|
9356
|
+
t("LOGIN_CONSTANT.LOGIC_CHIP_4"),
|
|
9357
|
+
t("LOGIN_CONSTANT.LOGIC_CHIP_5")
|
|
9237
9358
|
],
|
|
9238
9359
|
url: "",
|
|
9239
|
-
cta: "
|
|
9360
|
+
cta: t(VISIT_KEY, { name: "blocks Logic" })
|
|
9240
9361
|
},
|
|
9241
9362
|
{
|
|
9242
9363
|
name: "blocks-studio",
|
|
9243
9364
|
appName: "blocks Studio",
|
|
9244
|
-
badge: "
|
|
9245
|
-
tagline: "
|
|
9246
|
-
descriptionTitle: "
|
|
9365
|
+
badge: t("LOGIN_CONSTANT.STUDIO_BADGE"),
|
|
9366
|
+
tagline: t("LOGIN_CONSTANT.STUDIO_TAGLINE"),
|
|
9367
|
+
descriptionTitle: t("LOGIN_CONSTANT.STUDIO_TITLE"),
|
|
9368
|
+
// Not shown in the UI.
|
|
9247
9369
|
keywords: [
|
|
9248
9370
|
"intelligent",
|
|
9249
9371
|
"generative",
|
|
@@ -9251,24 +9373,25 @@ var BLOCKS_PRODUCTS = [
|
|
|
9251
9373
|
"instant",
|
|
9252
9374
|
"adaptive"
|
|
9253
9375
|
],
|
|
9254
|
-
shortDescription: "
|
|
9255
|
-
description: "
|
|
9376
|
+
shortDescription: t("LOGIN_CONSTANT.STUDIO_SHORT"),
|
|
9377
|
+
description: t("LOGIN_CONSTANT.STUDIO_DESCRIPTION"),
|
|
9256
9378
|
featureChips: [
|
|
9257
|
-
"
|
|
9258
|
-
"
|
|
9259
|
-
"
|
|
9260
|
-
"
|
|
9261
|
-
"
|
|
9379
|
+
t("LOGIN_CONSTANT.STUDIO_CHIP_1"),
|
|
9380
|
+
t("LOGIN_CONSTANT.STUDIO_CHIP_2"),
|
|
9381
|
+
t("LOGIN_CONSTANT.STUDIO_CHIP_3"),
|
|
9382
|
+
t("LOGIN_CONSTANT.STUDIO_CHIP_4"),
|
|
9383
|
+
t("LOGIN_CONSTANT.STUDIO_CHIP_5")
|
|
9262
9384
|
],
|
|
9263
9385
|
url: "",
|
|
9264
|
-
cta: "
|
|
9386
|
+
cta: t(VISIT_KEY, { name: "blocks Studio" })
|
|
9265
9387
|
},
|
|
9266
9388
|
{
|
|
9267
9389
|
name: "blocks-agents",
|
|
9268
9390
|
appName: "Blocks Agents",
|
|
9269
|
-
badge: "
|
|
9270
|
-
tagline: "
|
|
9271
|
-
descriptionTitle: "
|
|
9391
|
+
badge: t("LOGIN_CONSTANT.AGENTS_BADGE"),
|
|
9392
|
+
tagline: t("LOGIN_CONSTANT.AGENTS_TAGLINE"),
|
|
9393
|
+
descriptionTitle: t("LOGIN_CONSTANT.AGENTS_TITLE"),
|
|
9394
|
+
// Not shown in the UI.
|
|
9272
9395
|
keywords: [
|
|
9273
9396
|
"reasoning",
|
|
9274
9397
|
"autonomous",
|
|
@@ -9276,95 +9399,99 @@ var BLOCKS_PRODUCTS = [
|
|
|
9276
9399
|
"intelligent",
|
|
9277
9400
|
"adaptive"
|
|
9278
9401
|
],
|
|
9279
|
-
shortDescription: "
|
|
9280
|
-
description: "
|
|
9402
|
+
shortDescription: t("LOGIN_CONSTANT.AGENTS_SHORT"),
|
|
9403
|
+
description: t("LOGIN_CONSTANT.AGENTS_DESCRIPTION"),
|
|
9281
9404
|
featureChips: [
|
|
9282
|
-
"
|
|
9283
|
-
"
|
|
9284
|
-
"
|
|
9285
|
-
"
|
|
9405
|
+
t("LOGIN_CONSTANT.AGENTS_CHIP_1"),
|
|
9406
|
+
t("LOGIN_CONSTANT.AGENTS_CHIP_2"),
|
|
9407
|
+
t("LOGIN_CONSTANT.AGENTS_CHIP_3"),
|
|
9408
|
+
t("LOGIN_CONSTANT.AGENTS_CHIP_4")
|
|
9286
9409
|
],
|
|
9287
9410
|
url: "",
|
|
9288
|
-
cta: "
|
|
9411
|
+
cta: t(VISIT_KEY, { name: "Blocks Agents" })
|
|
9289
9412
|
},
|
|
9290
9413
|
{
|
|
9291
9414
|
name: "blocks-release",
|
|
9292
9415
|
appName: "blocks Release",
|
|
9293
|
-
badge: "
|
|
9294
|
-
tagline: "
|
|
9295
|
-
descriptionTitle: "
|
|
9416
|
+
badge: t("LOGIN_CONSTANT.RELEASE_BADGE"),
|
|
9417
|
+
tagline: t("LOGIN_CONSTANT.RELEASE_TAGLINE"),
|
|
9418
|
+
descriptionTitle: t("LOGIN_CONSTANT.RELEASE_TITLE"),
|
|
9419
|
+
// Not shown in the UI.
|
|
9296
9420
|
keywords: ["secure", "compliant", "automated", "fast"],
|
|
9297
|
-
shortDescription: "
|
|
9298
|
-
description: "
|
|
9421
|
+
shortDescription: t("LOGIN_CONSTANT.RELEASE_SHORT"),
|
|
9422
|
+
description: t("LOGIN_CONSTANT.RELEASE_DESCRIPTION"),
|
|
9299
9423
|
featureChips: [
|
|
9300
|
-
"
|
|
9301
|
-
"
|
|
9302
|
-
"
|
|
9303
|
-
"
|
|
9304
|
-
"
|
|
9424
|
+
t("LOGIN_CONSTANT.RELEASE_CHIP_1"),
|
|
9425
|
+
t("LOGIN_CONSTANT.RELEASE_CHIP_2"),
|
|
9426
|
+
t("LOGIN_CONSTANT.RELEASE_CHIP_3"),
|
|
9427
|
+
t("LOGIN_CONSTANT.RELEASE_CHIP_4"),
|
|
9428
|
+
t("LOGIN_CONSTANT.RELEASE_CHIP_5")
|
|
9305
9429
|
],
|
|
9306
9430
|
url: "",
|
|
9307
|
-
cta: "
|
|
9431
|
+
cta: t(VISIT_KEY, { name: "blocks Release" })
|
|
9308
9432
|
},
|
|
9309
9433
|
{
|
|
9310
9434
|
name: "blocks-monitor",
|
|
9311
9435
|
appName: "blocks Monitor",
|
|
9312
|
-
badge: "
|
|
9313
|
-
tagline: "
|
|
9314
|
-
descriptionTitle: "
|
|
9436
|
+
badge: t("LOGIN_CONSTANT.MONITOR_BADGE"),
|
|
9437
|
+
tagline: t("LOGIN_CONSTANT.MONITOR_TAGLINE"),
|
|
9438
|
+
descriptionTitle: t("LOGIN_CONSTANT.MONITOR_TITLE"),
|
|
9439
|
+
// Not shown in the UI.
|
|
9315
9440
|
keywords: ["observable", "traceable", "real-time", "intelligent"],
|
|
9316
|
-
shortDescription: "
|
|
9317
|
-
description: "
|
|
9441
|
+
shortDescription: t("LOGIN_CONSTANT.MONITOR_SHORT"),
|
|
9442
|
+
description: t("LOGIN_CONSTANT.MONITOR_DESCRIPTION"),
|
|
9318
9443
|
featureChips: [
|
|
9319
|
-
"
|
|
9320
|
-
"
|
|
9321
|
-
"
|
|
9322
|
-
"
|
|
9323
|
-
"
|
|
9444
|
+
t("LOGIN_CONSTANT.MONITOR_CHIP_1"),
|
|
9445
|
+
t("LOGIN_CONSTANT.MONITOR_CHIP_2"),
|
|
9446
|
+
t("LOGIN_CONSTANT.MONITOR_CHIP_3"),
|
|
9447
|
+
t("LOGIN_CONSTANT.MONITOR_CHIP_4"),
|
|
9448
|
+
t("LOGIN_CONSTANT.MONITOR_CHIP_5")
|
|
9324
9449
|
],
|
|
9325
9450
|
url: "",
|
|
9326
|
-
cta: "
|
|
9451
|
+
cta: t(VISIT_KEY, { name: "blocks Monitor" })
|
|
9327
9452
|
},
|
|
9328
9453
|
{
|
|
9329
9454
|
name: "blocks-utilities",
|
|
9330
9455
|
appName: "blocks Utilities",
|
|
9331
|
-
badge: "
|
|
9332
|
-
tagline: "
|
|
9333
|
-
descriptionTitle: "
|
|
9456
|
+
badge: t("LOGIN_CONSTANT.UTILITIES_BADGE"),
|
|
9457
|
+
tagline: t("LOGIN_CONSTANT.UTILITIES_TAGLINE"),
|
|
9458
|
+
descriptionTitle: t("LOGIN_CONSTANT.UTILITIES_TITLE"),
|
|
9459
|
+
// Not shown in the UI.
|
|
9334
9460
|
keywords: ["reliable", "real-time", "automated", "scalable"],
|
|
9335
|
-
shortDescription: "
|
|
9336
|
-
description: "
|
|
9461
|
+
shortDescription: t("LOGIN_CONSTANT.UTILITIES_SHORT"),
|
|
9462
|
+
description: t("LOGIN_CONSTANT.UTILITIES_DESCRIPTION"),
|
|
9337
9463
|
featureChips: [
|
|
9338
|
-
"
|
|
9339
|
-
"
|
|
9340
|
-
"
|
|
9341
|
-
"
|
|
9342
|
-
"
|
|
9464
|
+
t("LOGIN_CONSTANT.UTILITIES_CHIP_1"),
|
|
9465
|
+
t("LOGIN_CONSTANT.UTILITIES_CHIP_2"),
|
|
9466
|
+
t("LOGIN_CONSTANT.UTILITIES_CHIP_3"),
|
|
9467
|
+
t("LOGIN_CONSTANT.UTILITIES_CHIP_4"),
|
|
9468
|
+
t("LOGIN_CONSTANT.UTILITIES_CHIP_5")
|
|
9343
9469
|
],
|
|
9344
9470
|
url: "",
|
|
9345
|
-
cta: "
|
|
9471
|
+
cta: t(VISIT_KEY, { name: "blocks Utilities" })
|
|
9346
9472
|
}
|
|
9347
9473
|
];
|
|
9348
|
-
var
|
|
9474
|
+
var getDefaultBlocksProducts = (t) => [
|
|
9349
9475
|
{
|
|
9350
9476
|
name: "blocks-os",
|
|
9351
9477
|
appName: "blocks OS Platform",
|
|
9352
|
-
badge: "
|
|
9353
|
-
tagline: "
|
|
9354
|
-
descriptionTitle: "
|
|
9478
|
+
badge: t("LOGIN_CONSTANT.DEFAULT_OS_BADGE"),
|
|
9479
|
+
tagline: t("LOGIN_CONSTANT.DEFAULT_OS_TAGLINE"),
|
|
9480
|
+
descriptionTitle: t("LOGIN_CONSTANT.DEFAULT_OS_TITLE"),
|
|
9481
|
+
// Not shown in the UI.
|
|
9355
9482
|
keywords: ["observable", "intelligent", "scalable", "resilient", "secure"],
|
|
9356
|
-
shortDescription: "
|
|
9357
|
-
description: "
|
|
9483
|
+
shortDescription: t("LOGIN_CONSTANT.DEFAULT_OS_SHORT"),
|
|
9484
|
+
description: t("LOGIN_CONSTANT.DEFAULT_OS_DESCRIPTION"),
|
|
9358
9485
|
featureChips: [
|
|
9359
|
-
"
|
|
9360
|
-
"
|
|
9361
|
-
"
|
|
9362
|
-
"
|
|
9363
|
-
"
|
|
9364
|
-
"
|
|
9486
|
+
t("LOGIN_CONSTANT.DEFAULT_OS_CHIP_1"),
|
|
9487
|
+
t("LOGIN_CONSTANT.DEFAULT_OS_CHIP_2"),
|
|
9488
|
+
t("LOGIN_CONSTANT.DEFAULT_OS_CHIP_3"),
|
|
9489
|
+
t("LOGIN_CONSTANT.DEFAULT_OS_CHIP_4"),
|
|
9490
|
+
t("LOGIN_CONSTANT.DEFAULT_OS_CHIP_5"),
|
|
9491
|
+
t("LOGIN_CONSTANT.DEFAULT_OS_CHIP_6")
|
|
9365
9492
|
],
|
|
9366
9493
|
url: "",
|
|
9367
|
-
cta: "
|
|
9494
|
+
cta: t(VISIT_KEY, { name: "blocks OS" })
|
|
9368
9495
|
}
|
|
9369
9496
|
];
|
|
9370
9497
|
|
|
@@ -9381,13 +9508,15 @@ function useLoginCarousel({
|
|
|
9381
9508
|
name,
|
|
9382
9509
|
carouselItems
|
|
9383
9510
|
}) {
|
|
9511
|
+
const { t } = useT("genesis.login");
|
|
9512
|
+
const defaultProducts = useMemo(() => getDefaultBlocksProducts(t), [t]);
|
|
9384
9513
|
const active = useMemo(() => {
|
|
9385
|
-
const products = carouselItems?.filter(isBlocksProduct) ??
|
|
9514
|
+
const products = carouselItems?.filter(isBlocksProduct) ?? defaultProducts;
|
|
9386
9515
|
return products.find((p) => p.name === name) ?? products[0];
|
|
9387
|
-
}, [name, carouselItems]);
|
|
9516
|
+
}, [name, carouselItems, defaultProducts]);
|
|
9388
9517
|
const otherProducts = useMemo(
|
|
9389
|
-
() =>
|
|
9390
|
-
[active?.name]
|
|
9518
|
+
() => defaultProducts.filter((p) => p.name !== active?.name),
|
|
9519
|
+
[defaultProducts, active?.name]
|
|
9391
9520
|
);
|
|
9392
9521
|
const carouselSource = carouselItems ?? otherProducts;
|
|
9393
9522
|
const [titleHead, titleTail] = splitAppName(active?.appName ?? "");
|
|
@@ -9412,15 +9541,20 @@ var BlocksLoginPage = ({
|
|
|
9412
9541
|
name,
|
|
9413
9542
|
onLogin,
|
|
9414
9543
|
isLoading = false,
|
|
9415
|
-
eyebrow
|
|
9416
|
-
loginLabel
|
|
9544
|
+
eyebrow,
|
|
9545
|
+
loginLabel,
|
|
9417
9546
|
docsUrl = "https://docs.seliseblocks.com/",
|
|
9418
|
-
footerLink
|
|
9547
|
+
footerLink,
|
|
9419
9548
|
showSignUp = false,
|
|
9420
9549
|
onSignUp,
|
|
9421
9550
|
isSignUpLoading = false,
|
|
9422
9551
|
carouselItems
|
|
9423
9552
|
}) => {
|
|
9553
|
+
const { t } = useT("genesis.login");
|
|
9554
|
+
const footer = footerLink ?? {
|
|
9555
|
+
label: t("BLOCKS_LOGIN_PAGE.FOOTER_LINK"),
|
|
9556
|
+
url: "https://seliseblocks.com"
|
|
9557
|
+
};
|
|
9424
9558
|
const canvasRef = useRef(null);
|
|
9425
9559
|
useAtmosphericCanvas(canvasRef);
|
|
9426
9560
|
const {
|
|
@@ -9542,7 +9676,7 @@ var BlocksLoginPage = ({
|
|
|
9542
9676
|
/* @__PURE__ */ jsx(LoginHeader, {}),
|
|
9543
9677
|
/* @__PURE__ */ jsxs("main", { className: "main", children: [
|
|
9544
9678
|
/* @__PURE__ */ jsxs("div", { className: "col-left", children: [
|
|
9545
|
-
/* @__PURE__ */ jsx("p", { className: "eyebrow", children: eyebrow }),
|
|
9679
|
+
/* @__PURE__ */ jsx("p", { className: "eyebrow", children: eyebrow ?? t("BLOCKS_LOGIN_PAGE.EYEBROW") }),
|
|
9546
9680
|
/* @__PURE__ */ jsxs("h1", { className: "title-main", children: [
|
|
9547
9681
|
titleHead,
|
|
9548
9682
|
titleTail && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -9563,7 +9697,7 @@ var BlocksLoginPage = ({
|
|
|
9563
9697
|
className: "launch-btn blocks-gradient",
|
|
9564
9698
|
disabled: isLoading,
|
|
9565
9699
|
onClick: onLogin,
|
|
9566
|
-
children: isLoading ? "
|
|
9700
|
+
children: isLoading ? t("BLOCKS_LOGIN_PAGE.REDIRECTING") : loginLabel ?? t("BLOCKS_LOGIN_PAGE.LOGIN_LABEL")
|
|
9567
9701
|
}
|
|
9568
9702
|
)
|
|
9569
9703
|
] }),
|
|
@@ -9575,7 +9709,7 @@ var BlocksLoginPage = ({
|
|
|
9575
9709
|
rel: "noreferrer",
|
|
9576
9710
|
className: "cta-docs",
|
|
9577
9711
|
children: [
|
|
9578
|
-
"
|
|
9712
|
+
t("BLOCKS_LOGIN_PAGE.VIEW_DOCUMENTATION"),
|
|
9579
9713
|
/* @__PURE__ */ jsx(
|
|
9580
9714
|
"svg",
|
|
9581
9715
|
{
|
|
@@ -9593,7 +9727,7 @@ var BlocksLoginPage = ({
|
|
|
9593
9727
|
)
|
|
9594
9728
|
] }),
|
|
9595
9729
|
showSignUp && /* @__PURE__ */ jsxs("p", { className: "cta-signup", children: [
|
|
9596
|
-
"
|
|
9730
|
+
t("BLOCKS_LOGIN_PAGE.NOT_A_MEMBER"),
|
|
9597
9731
|
" ",
|
|
9598
9732
|
/* @__PURE__ */ jsxs(
|
|
9599
9733
|
"button",
|
|
@@ -9603,7 +9737,7 @@ var BlocksLoginPage = ({
|
|
|
9603
9737
|
disabled: isSignUpLoading,
|
|
9604
9738
|
className: "cta-signup-link",
|
|
9605
9739
|
children: [
|
|
9606
|
-
isSignUpLoading ? "
|
|
9740
|
+
isSignUpLoading ? t("BLOCKS_LOGIN_PAGE.REDIRECTING") : t("BLOCKS_LOGIN_PAGE.SIGN_UP"),
|
|
9607
9741
|
/* @__PURE__ */ jsx(
|
|
9608
9742
|
"svg",
|
|
9609
9743
|
{
|
|
@@ -9623,11 +9757,10 @@ var BlocksLoginPage = ({
|
|
|
9623
9757
|
] }),
|
|
9624
9758
|
/* @__PURE__ */ jsxs("div", { className: "col-right", children: [
|
|
9625
9759
|
/* @__PURE__ */ jsxs("div", { className: "sdk-header-row", children: [
|
|
9626
|
-
/* @__PURE__ */ jsx("p", { className: "sdk-header-label", children: "
|
|
9627
|
-
/* @__PURE__ */
|
|
9628
|
-
carouselSource.length
|
|
9629
|
-
|
|
9630
|
-
] })
|
|
9760
|
+
/* @__PURE__ */ jsx("p", { className: "sdk-header-label", children: t("BLOCKS_LOGIN_PAGE.SERVICES_HEADER") }),
|
|
9761
|
+
/* @__PURE__ */ jsx(Badge, { variant: "outline", className: "sdk-count-badge", children: t("BLOCKS_LOGIN_PAGE.SERVICES_COUNT", {
|
|
9762
|
+
count: carouselSource.length
|
|
9763
|
+
}) })
|
|
9631
9764
|
] }),
|
|
9632
9765
|
/* @__PURE__ */ jsx("div", { className: "carousel-track", children: /* @__PURE__ */ jsx("div", { className: "carousel-inner", children: carouselCards.map((item, i) => {
|
|
9633
9766
|
const isBlocksProductItem = isBlocksProduct(item);
|
|
@@ -9707,12 +9840,12 @@ var BlocksLoginPage = ({
|
|
|
9707
9840
|
/* @__PURE__ */ jsxs(
|
|
9708
9841
|
"a",
|
|
9709
9842
|
{
|
|
9710
|
-
href:
|
|
9843
|
+
href: footer.url,
|
|
9711
9844
|
target: "_blank",
|
|
9712
9845
|
rel: "noreferrer",
|
|
9713
9846
|
className: "visit-construct",
|
|
9714
9847
|
children: [
|
|
9715
|
-
|
|
9848
|
+
footer.label,
|
|
9716
9849
|
/* @__PURE__ */ jsx(
|
|
9717
9850
|
"svg",
|
|
9718
9851
|
{
|
|
@@ -9728,13 +9861,15 @@ var BlocksLoginPage = ({
|
|
|
9728
9861
|
]
|
|
9729
9862
|
}
|
|
9730
9863
|
),
|
|
9731
|
-
/* @__PURE__ */ jsx("span", { className: "sdk-open-source", children: "
|
|
9864
|
+
/* @__PURE__ */ jsx("span", { className: "sdk-open-source", children: t("BLOCKS_LOGIN_PAGE.OPEN_SOURCE") })
|
|
9732
9865
|
] })
|
|
9733
9866
|
] })
|
|
9734
9867
|
] })
|
|
9735
9868
|
] });
|
|
9736
9869
|
};
|
|
9737
9870
|
var LoginPage = () => {
|
|
9871
|
+
const { t } = useT("genesis.login");
|
|
9872
|
+
const products = useMemo(() => getBlocksProducts(t), [t]);
|
|
9738
9873
|
const config = useBlocksAppConfigStore((state) => state.getConfig());
|
|
9739
9874
|
const { start, isLoading } = useLogin();
|
|
9740
9875
|
const { canSignUp } = useSignUpAffordance();
|
|
@@ -9748,7 +9883,7 @@ var LoginPage = () => {
|
|
|
9748
9883
|
showSignUp: canSignUp,
|
|
9749
9884
|
onSignUp: startSignUp,
|
|
9750
9885
|
isSignUpLoading,
|
|
9751
|
-
carouselItems:
|
|
9886
|
+
carouselItems: products
|
|
9752
9887
|
}
|
|
9753
9888
|
);
|
|
9754
9889
|
};
|
|
@@ -9761,33 +9896,33 @@ var resource_cli_default = 'data:image/svg+xml,<svg width="160" height="120" vie
|
|
|
9761
9896
|
|
|
9762
9897
|
// src/assets/images/console/resource-skills.svg
|
|
9763
9898
|
var resource_skills_default = 'data:image/svg+xml,<svg width="160" height="120" viewBox="0 0 160 120" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <defs>%0A <linearGradient id="skills-top" x1="48" y1="30" x2="113" y2="68" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 75%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 58%)"/>%0A </linearGradient>%0A <linearGradient id="skills-left" x1="43" y1="49" x2="80" y2="99" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 58%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 44%)"/>%0A </linearGradient>%0A <linearGradient id="skills-right" x1="80" y1="62" x2="119" y2="97" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 44%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 32%)"/>%0A </linearGradient>%0A <filter id="skills-shadow" x="28" y="17" width="111" height="99" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">%0A <feDropShadow dx="0" dy="9" stdDeviation="7" flood-color="hsl(218 78% 32%)" flood-opacity="0.16"/>%0A </filter>%0A </defs>%0A%0A <ellipse cx="80" cy="101" rx="43" ry="8" fill="hsl(218 78% 32%)" fill-opacity="0.08"/>%0A <g filter="url(%23skills-shadow)">%0A <path d="M42 52L80 31L118 52L80 74L42 52Z" fill="url(%23skills-top)"/>%0A <path d="M42 52L80 74V100L42 78V52Z" fill="url(%23skills-left)"/>%0A <path d="M80 74L118 52V78L80 100V74Z" fill="url(%23skills-right)"/>%0A <path d="M61 41.5L99 63.5L110 57L72 35L61 41.5Z" fill="hsl(218 78% 90%)" fill-opacity="0.7"/>%0A <path d="M99 63.5V76.5L110 70V57L99 63.5Z" fill="hsl(218 78% 32%)"/>%0A <path d="M61 41.5V54.5L99 76.5V63.5L61 41.5Z" fill="hsl(218 78% 58%)"/>%0A <path d="M52 65L69 74.8M52 72L65 79.5" stroke="hsl(218 78% 75%)" stroke-width="3" stroke-linecap="round"/>%0A <path d="M90 85L107 75" stroke="hsl(218 78% 75%)" stroke-width="3" stroke-linecap="round"/>%0A </g>%0A <g transform="rotate(-12 111 34)">%0A <rect x="108" y="30" width="7" height="43" rx="3.5" fill="hsl(218 78% 44%)"/>%0A <rect x="108" y="30" width="7" height="13" rx="3.5" fill="hsl(218 78% 75%)"/>%0A </g>%0A <path d="M111 28C110 20.9 107.1 18 100 17C107.1 16 110 13.1 111 6C112 13.1 114.9 16 122 17C114.9 18 112 20.9 111 28Z" fill="hsl(218 78% 58%)"/>%0A <path d="M133 44C132.4 39.7 130.3 37.6 126 37C130.3 36.4 132.4 34.3 133 30C133.6 34.3 135.7 36.4 140 37C135.7 37.6 133.6 39.7 133 44Z" fill="hsl(218 78% 75%)"/>%0A <circle cx="128" cy="57" r="3" fill="hsl(218 78% 90%)"/>%0A</svg>%0A';
|
|
9764
|
-
var
|
|
9899
|
+
var getResources = (t) => [
|
|
9765
9900
|
{
|
|
9766
|
-
eyebrow: "
|
|
9767
|
-
label: "
|
|
9768
|
-
description: "
|
|
9901
|
+
eyebrow: t("DEFAULT_DOC.LEARN_EYEBROW"),
|
|
9902
|
+
label: t("DEFAULT_DOC.LEARN_LABEL"),
|
|
9903
|
+
description: t("DEFAULT_DOC.LEARN_DESCRIPTION"),
|
|
9769
9904
|
image: resource_docs_default,
|
|
9770
9905
|
url: "https://docs.seliseblocks.com",
|
|
9771
9906
|
icon: BookOpenText,
|
|
9772
|
-
actionLabel: "
|
|
9907
|
+
actionLabel: t("DEFAULT_DOC.LEARN_ACTION")
|
|
9773
9908
|
},
|
|
9774
9909
|
{
|
|
9775
|
-
eyebrow: "
|
|
9776
|
-
label: "
|
|
9777
|
-
description: "
|
|
9910
|
+
eyebrow: t("DEFAULT_DOC.BUILD_EYEBROW"),
|
|
9911
|
+
label: t("DEFAULT_DOC.BUILD_LABEL"),
|
|
9912
|
+
description: t("DEFAULT_DOC.BUILD_DESCRIPTION"),
|
|
9778
9913
|
image: resource_cli_default,
|
|
9779
9914
|
url: "https://github.com/SELISEdigitalplatforms/blocks-cli",
|
|
9780
9915
|
icon: SquareTerminal,
|
|
9781
|
-
actionLabel: "
|
|
9916
|
+
actionLabel: t("DEFAULT_DOC.BUILD_ACTION")
|
|
9782
9917
|
},
|
|
9783
9918
|
{
|
|
9784
|
-
eyebrow: "
|
|
9785
|
-
label: "
|
|
9786
|
-
description: "
|
|
9919
|
+
eyebrow: t("DEFAULT_DOC.AUTOMATE_EYEBROW"),
|
|
9920
|
+
label: t("DEFAULT_DOC.AUTOMATE_LABEL"),
|
|
9921
|
+
description: t("DEFAULT_DOC.AUTOMATE_DESCRIPTION"),
|
|
9787
9922
|
image: resource_skills_default,
|
|
9788
9923
|
url: "https://github.com/SELISEdigitalplatforms/blocks-skills",
|
|
9789
9924
|
icon: Sparkles,
|
|
9790
|
-
actionLabel: "
|
|
9925
|
+
actionLabel: t("DEFAULT_DOC.AUTOMATE_ACTION")
|
|
9791
9926
|
}
|
|
9792
9927
|
];
|
|
9793
9928
|
var BentoGrid = ({
|
|
@@ -9851,7 +9986,10 @@ var BentoCard = ({
|
|
|
9851
9986
|
]
|
|
9852
9987
|
}
|
|
9853
9988
|
);
|
|
9854
|
-
var DefaultDoc = () =>
|
|
9989
|
+
var DefaultDoc = () => {
|
|
9990
|
+
const { t } = useT("genesis.console");
|
|
9991
|
+
return /* @__PURE__ */ jsx(BentoGrid, { children: getResources(t).map((resource) => /* @__PURE__ */ jsx(BentoCard, { ...resource }, resource.url)) });
|
|
9992
|
+
};
|
|
9855
9993
|
function useCreateProjectRedirect() {
|
|
9856
9994
|
const { name } = useBlocksAppConfigStore((state) => state.config);
|
|
9857
9995
|
const navigate = useNavigate();
|
|
@@ -9877,6 +10015,7 @@ function useCreateProjectRedirect() {
|
|
|
9877
10015
|
};
|
|
9878
10016
|
}
|
|
9879
10017
|
var AddProjectCard = () => {
|
|
10018
|
+
const { t } = useT("genesis.console");
|
|
9880
10019
|
const { handleClick, isDisabled, isFetching } = useCreateProjectRedirect();
|
|
9881
10020
|
if (isFetching) {
|
|
9882
10021
|
return /* @__PURE__ */ jsx(ProjectCardLoadingSkeleton, {});
|
|
@@ -9892,12 +10031,13 @@ var AddProjectCard = () => {
|
|
|
9892
10031
|
style: { pointerEvents: isDisabled ? "none" : "auto" },
|
|
9893
10032
|
children: /* @__PURE__ */ jsxs(CardContent, { className: "p-0 text-center", children: [
|
|
9894
10033
|
/* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx(Plus, { className: "text-primary", strokeWidth: 2, size: 50 }) }),
|
|
9895
|
-
/* @__PURE__ */ jsx("p", { className: "text-primary mt-2 font-bold", children: "
|
|
10034
|
+
/* @__PURE__ */ jsx("p", { className: "text-primary mt-2 font-bold", children: t("ADD_PROJECT_CARD.ADD_PROJECT") })
|
|
9896
10035
|
] })
|
|
9897
10036
|
}
|
|
9898
10037
|
);
|
|
9899
10038
|
};
|
|
9900
10039
|
function ConsoleCreateProject() {
|
|
10040
|
+
const { t } = useT("genesis.console");
|
|
9901
10041
|
const { handleClick, isDisabled, isFetching } = useCreateProjectRedirect();
|
|
9902
10042
|
return /* @__PURE__ */ jsxs(
|
|
9903
10043
|
motion.div,
|
|
@@ -9912,10 +10052,10 @@ function ConsoleCreateProject() {
|
|
|
9912
10052
|
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute -left-10 bottom-0 h-32 w-32 rounded-full bg-white/[0.03]" }),
|
|
9913
10053
|
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 bg-[radial-gradient(hsl(210_100%_100%/0.07)_1px,transparent_1px)] [background-size:22px_22px]" }),
|
|
9914
10054
|
/* @__PURE__ */ jsxs("div", { className: "relative flex flex-col items-center gap-5 px-8 py-14 text-center sm:px-12 sm:py-20", children: [
|
|
9915
|
-
/* @__PURE__ */ jsx("p", { className: "text-[10px] font-semibold uppercase tracking-[0.15em] text-primary-foreground/60", children: "
|
|
10055
|
+
/* @__PURE__ */ jsx("p", { className: "text-[10px] font-semibold uppercase tracking-[0.15em] text-primary-foreground/60", children: t("CONSOLE_CREATE.EYEBROW") }),
|
|
9916
10056
|
/* @__PURE__ */ jsx("div", { className: "flex h-12 w-12 items-center justify-center rounded-xl border border-white/15 bg-white/10", children: /* @__PURE__ */ jsx(Layers, { className: "h-6 w-6 text-primary-foreground" }) }),
|
|
9917
|
-
/* @__PURE__ */ jsx("h3", { className: "text-3xl font-bold tracking-tight text-primary-foreground sm:text-4xl", children: "
|
|
9918
|
-
/* @__PURE__ */ jsx("p", { className: "max-w-md text-sm leading-relaxed text-primary-foreground/70", children: "
|
|
10057
|
+
/* @__PURE__ */ jsx("h3", { className: "text-3xl font-bold tracking-tight text-primary-foreground sm:text-4xl", children: t("CONSOLE_CREATE.TITLE") }),
|
|
10058
|
+
/* @__PURE__ */ jsx("p", { className: "max-w-md text-sm leading-relaxed text-primary-foreground/70", children: t("CONSOLE_CREATE.DESCRIPTION") }),
|
|
9919
10059
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap justify-center gap-3 pt-1", children: [
|
|
9920
10060
|
/* @__PURE__ */ jsx(
|
|
9921
10061
|
Button,
|
|
@@ -9923,7 +10063,7 @@ function ConsoleCreateProject() {
|
|
|
9923
10063
|
onClick: handleClick,
|
|
9924
10064
|
disabled: isDisabled,
|
|
9925
10065
|
className: "inline-flex items-center rounded-lg bg-white px-5 py-2.5 text-sm font-semibold text-primary shadow-sm transition-colors hover:bg-white/90",
|
|
9926
|
-
children: isFetching ? "
|
|
10066
|
+
children: isFetching ? t("CONSOLE_CREATE.REDIRECTING") : t("CONSOLE_CREATE.CREATE_PROJECT")
|
|
9927
10067
|
}
|
|
9928
10068
|
),
|
|
9929
10069
|
/* @__PURE__ */ jsxs(
|
|
@@ -9934,7 +10074,7 @@ function ConsoleCreateProject() {
|
|
|
9934
10074
|
className: "inline-flex items-center gap-2 rounded-lg bg-white/15 px-4 py-2.5 text-sm font-semibold text-white backdrop-blur-sm transition-colors hover:bg-white/25",
|
|
9935
10075
|
children: [
|
|
9936
10076
|
/* @__PURE__ */ jsx(BookOpenText, { className: "h-4 w-4" }),
|
|
9937
|
-
"
|
|
10077
|
+
t("CONSOLE_CREATE.VIEW_DOCUMENTATION")
|
|
9938
10078
|
]
|
|
9939
10079
|
}
|
|
9940
10080
|
)
|
|
@@ -9971,16 +10111,19 @@ function useProjectOverviewRedirect({
|
|
|
9971
10111
|
isFetching
|
|
9972
10112
|
};
|
|
9973
10113
|
}
|
|
9974
|
-
var getActionLabels = (canOpen, isShared) => {
|
|
10114
|
+
var getActionLabels = (t, canOpen, isShared) => {
|
|
9975
10115
|
if (canOpen) {
|
|
9976
|
-
return isShared ? {
|
|
9977
|
-
accessibleLabel: "
|
|
9978
|
-
tooltipLabel: "
|
|
10116
|
+
return isShared ? {
|
|
10117
|
+
accessibleLabel: t("PROJECT_ACTION_BUTTON.OPEN_SHARED_ARIA"),
|
|
10118
|
+
tooltipLabel: t("PROJECT_ACTION_BUTTON.OPEN_SHARED_TOOLTIP")
|
|
10119
|
+
} : {
|
|
10120
|
+
accessibleLabel: t("PROJECT_ACTION_BUTTON.CONFIGURE_ARIA"),
|
|
10121
|
+
tooltipLabel: t("PROJECT_ACTION_BUTTON.CONFIGURE_TOOLTIP")
|
|
9979
10122
|
};
|
|
9980
10123
|
}
|
|
9981
10124
|
return {
|
|
9982
|
-
accessibleLabel: "
|
|
9983
|
-
tooltipLabel: "
|
|
10125
|
+
accessibleLabel: t("PROJECT_ACTION_BUTTON.ACCESS_UNAVAILABLE"),
|
|
10126
|
+
tooltipLabel: t("PROJECT_ACTION_BUTTON.ACCESS_UNAVAILABLE")
|
|
9984
10127
|
};
|
|
9985
10128
|
};
|
|
9986
10129
|
var ProjectActionButton = ({
|
|
@@ -9988,12 +10131,17 @@ var ProjectActionButton = ({
|
|
|
9988
10131
|
isShared,
|
|
9989
10132
|
canOpen = true
|
|
9990
10133
|
}) => {
|
|
10134
|
+
const { t } = useT("genesis.console");
|
|
9991
10135
|
const { setTenantGroup } = useProjectStore();
|
|
9992
10136
|
const { handleClick, isDisabled, isFetching } = useProjectOverviewRedirect({
|
|
9993
10137
|
tenantGroupId: project.tenantGroupId
|
|
9994
10138
|
});
|
|
9995
10139
|
const isActionDisabled = !canOpen || isDisabled || isFetching;
|
|
9996
|
-
const { accessibleLabel, tooltipLabel } = getActionLabels(
|
|
10140
|
+
const { accessibleLabel, tooltipLabel } = getActionLabels(
|
|
10141
|
+
t,
|
|
10142
|
+
canOpen,
|
|
10143
|
+
isShared
|
|
10144
|
+
);
|
|
9997
10145
|
const onClick = () => {
|
|
9998
10146
|
setTenantGroup(project.tenantGroupId);
|
|
9999
10147
|
handleClick();
|
|
@@ -10028,6 +10176,7 @@ var getLatestProjectUpdate = (group) => group.projects.reduce((latest, project)
|
|
|
10028
10176
|
var getEnvironmentLabel = (environment) => environmentOptions.find((option) => option.value === environment)?.label ?? environment;
|
|
10029
10177
|
var INLINE_LIMIT = 3;
|
|
10030
10178
|
var ProjectEnvironments = ({ projects }) => {
|
|
10179
|
+
const { t } = useT("genesis.console");
|
|
10031
10180
|
const navigate = useNavigate();
|
|
10032
10181
|
const { setTenantGroup, setSelectedProject } = useProjectStore();
|
|
10033
10182
|
const onEnvironmentClick = async (event, project) => {
|
|
@@ -10054,7 +10203,7 @@ var ProjectEnvironments = ({ projects }) => {
|
|
|
10054
10203
|
project.environment
|
|
10055
10204
|
);
|
|
10056
10205
|
if (projects.length === 0) {
|
|
10057
|
-
return /* @__PURE__ */ jsx("span", { className: "border-border/60 bg-muted/40 text-muted-foreground inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs", children: "
|
|
10206
|
+
return /* @__PURE__ */ jsx("span", { className: "border-border/60 bg-muted/40 text-muted-foreground inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs", children: t("PROJECT_ENVIRONMENTS.NO_ENVIRONMENTS") });
|
|
10058
10207
|
}
|
|
10059
10208
|
const hasOverflow = projects.length > INLINE_LIMIT;
|
|
10060
10209
|
const visibleProjects = hasOverflow ? projects.slice(0, INLINE_LIMIT) : projects;
|
|
@@ -10062,17 +10211,13 @@ var ProjectEnvironments = ({ projects }) => {
|
|
|
10062
10211
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [
|
|
10063
10212
|
visibleProjects.map(renderEnvironmentChip),
|
|
10064
10213
|
hasOverflow && /* @__PURE__ */ jsxs(Popover, { children: [
|
|
10065
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */
|
|
10214
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
10066
10215
|
"button",
|
|
10067
10216
|
{
|
|
10068
10217
|
type: "button",
|
|
10069
10218
|
onClick: (event) => event.stopPropagation(),
|
|
10070
10219
|
className: "border-border/60 bg-muted/40 text-muted-foreground hover:bg-muted hover:text-foreground inline-flex cursor-pointer items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors",
|
|
10071
|
-
children:
|
|
10072
|
-
"+",
|
|
10073
|
-
overflowCount,
|
|
10074
|
-
" more"
|
|
10075
|
-
]
|
|
10220
|
+
children: t("PROJECT_ENVIRONMENTS.MORE", { count: overflowCount })
|
|
10076
10221
|
}
|
|
10077
10222
|
) }),
|
|
10078
10223
|
/* @__PURE__ */ jsxs(
|
|
@@ -10082,7 +10227,7 @@ var ProjectEnvironments = ({ projects }) => {
|
|
|
10082
10227
|
align: "start",
|
|
10083
10228
|
onClick: (event) => event.stopPropagation(),
|
|
10084
10229
|
children: [
|
|
10085
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground px-2 pb-1.5 pt-1 text-[10px] font-semibold uppercase tracking-wider", children: "
|
|
10230
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground px-2 pb-1.5 pt-1 text-[10px] font-semibold uppercase tracking-wider", children: t("PROJECT_ENVIRONMENTS.ALL_ENVIRONMENTS") }),
|
|
10086
10231
|
projects.map((project) => /* @__PURE__ */ jsxs(
|
|
10087
10232
|
"button",
|
|
10088
10233
|
{
|
|
@@ -10108,6 +10253,7 @@ var ProjectCard = ({
|
|
|
10108
10253
|
isShared,
|
|
10109
10254
|
canOpen = true
|
|
10110
10255
|
}) => {
|
|
10256
|
+
const { t } = useT("genesis.console");
|
|
10111
10257
|
return /* @__PURE__ */ jsxs(Card, { className: "border-border/60 bg-card hover:border-primary/30 group flex h-40 flex-col overflow-hidden rounded-xl border p-4 shadow-sm transition-all duration-200 hover:shadow-md", children: [
|
|
10112
10258
|
/* @__PURE__ */ jsxs("div", { className: "relative flex items-start justify-between gap-2", children: [
|
|
10113
10259
|
/* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: /* @__PURE__ */ jsx(CardTitle, { className: "line-clamp-3 break-all text-base font-semibold leading-snug", children: project.name }) }),
|
|
@@ -10123,7 +10269,7 @@ var ProjectCard = ({
|
|
|
10123
10269
|
className: "flex items-center gap-1 shrink-0",
|
|
10124
10270
|
children: [
|
|
10125
10271
|
/* @__PURE__ */ jsx(UsersRound, { size: 16 }),
|
|
10126
|
-
"
|
|
10272
|
+
t("PROJECT_CARD.SHARED")
|
|
10127
10273
|
]
|
|
10128
10274
|
}
|
|
10129
10275
|
),
|
|
@@ -10143,13 +10289,18 @@ var ProjectCard = ({
|
|
|
10143
10289
|
/* @__PURE__ */ jsx("div", { className: "mt-auto", children: /* @__PURE__ */ jsx(ProjectEnvironments, { projects }) })
|
|
10144
10290
|
] });
|
|
10145
10291
|
};
|
|
10146
|
-
var
|
|
10292
|
+
var MODULE3 = "genesis.console";
|
|
10293
|
+
var timeAgo = (timestamp, language) => formatDistanceToNow(timestamp, {
|
|
10294
|
+
addSuffix: true,
|
|
10295
|
+
locale: language === "de" ? de : void 0
|
|
10296
|
+
});
|
|
10297
|
+
var getLastUpdatedLabel = (group, t, language) => {
|
|
10147
10298
|
const timestamp = getLatestProjectUpdate(group);
|
|
10148
|
-
return timestamp === 0 ? "
|
|
10299
|
+
return timestamp === 0 ? t("PROJECT_LIST.UNKNOWN") : timeAgo(timestamp, language);
|
|
10149
10300
|
};
|
|
10150
|
-
var getLastUpdatedCellLabel = (group) => {
|
|
10301
|
+
var getLastUpdatedCellLabel = (group, t, language) => {
|
|
10151
10302
|
const timestamp = getLatestProjectUpdate(group);
|
|
10152
|
-
return timestamp === 0 ? "
|
|
10303
|
+
return timestamp === 0 ? t("PROJECT_LIST.NOT_UPDATED_YET") : t("PROJECT_LIST.UPDATED", { time: timeAgo(timestamp, language) });
|
|
10153
10304
|
};
|
|
10154
10305
|
var CARD_RADIUS = "0.75rem";
|
|
10155
10306
|
var ROW_SPACING = "0 0.5rem";
|
|
@@ -10163,11 +10314,15 @@ var cardCorners = {
|
|
|
10163
10314
|
borderBottomRightRadius: CARD_RADIUS
|
|
10164
10315
|
}
|
|
10165
10316
|
};
|
|
10166
|
-
var SharedStatus = ({ isShared }) =>
|
|
10167
|
-
|
|
10168
|
-
"
|
|
10169
|
-
|
|
10317
|
+
var SharedStatus = ({ isShared }) => {
|
|
10318
|
+
const { t } = useT(MODULE3);
|
|
10319
|
+
return isShared ? /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "flex w-fit items-center gap-1", children: [
|
|
10320
|
+
/* @__PURE__ */ jsx(UsersRound, { size: 16 }),
|
|
10321
|
+
t("PROJECT_LIST.SHARED")
|
|
10322
|
+
] }) : /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "\u2014" });
|
|
10323
|
+
};
|
|
10170
10324
|
var AddProjectListAction = ({ mobile = false }) => {
|
|
10325
|
+
const { t } = useT(MODULE3);
|
|
10171
10326
|
const { handleClick, isDisabled, isFetching } = useCreateProjectRedirect();
|
|
10172
10327
|
const action = /* @__PURE__ */ jsxs(
|
|
10173
10328
|
Button,
|
|
@@ -10179,7 +10334,7 @@ var AddProjectListAction = ({ mobile = false }) => {
|
|
|
10179
10334
|
onClick: handleClick,
|
|
10180
10335
|
children: [
|
|
10181
10336
|
/* @__PURE__ */ jsx(Plus, { className: "h-4 w-4" }),
|
|
10182
|
-
"
|
|
10337
|
+
t("PROJECT_LIST.ADD_PROJECT")
|
|
10183
10338
|
]
|
|
10184
10339
|
}
|
|
10185
10340
|
);
|
|
@@ -10206,46 +10361,49 @@ var AddProjectListAction = ({ mobile = false }) => {
|
|
|
10206
10361
|
var ProjectMobileList = ({
|
|
10207
10362
|
projectGroups,
|
|
10208
10363
|
showAddProject
|
|
10209
|
-
}) =>
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
/* @__PURE__ */
|
|
10364
|
+
}) => {
|
|
10365
|
+
const { t, language } = useT(MODULE3);
|
|
10366
|
+
return /* @__PURE__ */ jsxs("div", { className: "grid gap-3", "data-testid": "project-list-mobile", children: [
|
|
10367
|
+
showAddProject && /* @__PURE__ */ jsx(AddProjectListAction, { mobile: true }),
|
|
10368
|
+
projectGroups.map((group) => {
|
|
10369
|
+
const project = group.projects[0];
|
|
10370
|
+
return /* @__PURE__ */ jsxs(
|
|
10371
|
+
Card,
|
|
10372
|
+
{
|
|
10373
|
+
"data-testid": "project-list-row",
|
|
10374
|
+
className: "border-border/60 space-y-3 rounded-xl border p-4 shadow-sm",
|
|
10375
|
+
children: [
|
|
10376
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
|
|
10377
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 space-y-2", children: [
|
|
10378
|
+
/* @__PURE__ */ jsx(CardTitle, { className: "break-all text-base", children: getProjectGroupName(group) || t("PROJECT_LIST.UNNAMED_PROJECT") }),
|
|
10379
|
+
/* @__PURE__ */ jsx(SharedStatus, { isShared: group.isShared })
|
|
10380
|
+
] }),
|
|
10381
|
+
project && /* @__PURE__ */ jsx(
|
|
10382
|
+
ProjectActionButton,
|
|
10383
|
+
{
|
|
10384
|
+
project,
|
|
10385
|
+
isShared: group.isShared,
|
|
10386
|
+
canOpen: canOpenProject(group)
|
|
10387
|
+
}
|
|
10388
|
+
)
|
|
10223
10389
|
] }),
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
|
|
10233
|
-
|
|
10234
|
-
|
|
10235
|
-
"Last updated ",
|
|
10236
|
-
getLastUpdatedLabel(group)
|
|
10237
|
-
] })
|
|
10238
|
-
]
|
|
10239
|
-
},
|
|
10240
|
-
group.tenantGroupId
|
|
10241
|
-
);
|
|
10242
|
-
})
|
|
10243
|
-
] });
|
|
10390
|
+
/* @__PURE__ */ jsx(ProjectEnvironments, { projects: group.projects }),
|
|
10391
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: t("PROJECT_LIST.LAST_UPDATED", {
|
|
10392
|
+
time: getLastUpdatedLabel(group, t, language)
|
|
10393
|
+
}) })
|
|
10394
|
+
]
|
|
10395
|
+
},
|
|
10396
|
+
group.tenantGroupId
|
|
10397
|
+
);
|
|
10398
|
+
})
|
|
10399
|
+
] });
|
|
10400
|
+
};
|
|
10244
10401
|
var ProjectList = ({
|
|
10245
10402
|
projectGroups,
|
|
10246
10403
|
showAddProject
|
|
10247
10404
|
}) => {
|
|
10248
10405
|
const isMobile = useIsMobile();
|
|
10406
|
+
const { t, language } = useT(MODULE3);
|
|
10249
10407
|
if (isMobile) {
|
|
10250
10408
|
return /* @__PURE__ */ jsx(
|
|
10251
10409
|
ProjectMobileList,
|
|
@@ -10275,12 +10433,12 @@ var ProjectList = ({
|
|
|
10275
10433
|
{
|
|
10276
10434
|
className: "bg-card max-w-64 break-all py-2 font-medium",
|
|
10277
10435
|
style: cardCorners.left,
|
|
10278
|
-
children: getProjectGroupName(group) || "
|
|
10436
|
+
children: getProjectGroupName(group) || t("PROJECT_LIST.UNNAMED_PROJECT")
|
|
10279
10437
|
}
|
|
10280
10438
|
),
|
|
10281
10439
|
/* @__PURE__ */ jsx(TableCell, { className: "bg-card py-2", children: /* @__PURE__ */ jsx(ProjectEnvironments, { projects: group.projects }) }),
|
|
10282
10440
|
/* @__PURE__ */ jsx(TableCell, { className: "bg-card py-2", children: /* @__PURE__ */ jsx(SharedStatus, { isShared: group.isShared }) }),
|
|
10283
|
-
/* @__PURE__ */ jsx(TableCell, { className: "bg-card whitespace-nowrap py-2 text-muted-foreground", children: getLastUpdatedCellLabel(group) }),
|
|
10441
|
+
/* @__PURE__ */ jsx(TableCell, { className: "bg-card whitespace-nowrap py-2 text-muted-foreground", children: getLastUpdatedCellLabel(group, t, language) }),
|
|
10284
10442
|
/* @__PURE__ */ jsx(
|
|
10285
10443
|
TableCell,
|
|
10286
10444
|
{
|
|
@@ -10311,6 +10469,7 @@ function MultiSelect2({
|
|
|
10311
10469
|
onChange,
|
|
10312
10470
|
value: selectedValues
|
|
10313
10471
|
}) {
|
|
10472
|
+
const { t } = useT("genesis.shared");
|
|
10314
10473
|
const [buttonRef, popoverWidth] = usePopoverWidth();
|
|
10315
10474
|
const onSelectHandler = (value) => {
|
|
10316
10475
|
const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
|
|
@@ -10374,7 +10533,7 @@ function MultiSelect2({
|
|
|
10374
10533
|
children: /* @__PURE__ */ jsxs(Command, { children: [
|
|
10375
10534
|
/* @__PURE__ */ jsx(CommandInput, { placeholder: label }),
|
|
10376
10535
|
/* @__PURE__ */ jsxs(CommandList, { children: [
|
|
10377
|
-
/* @__PURE__ */ jsx(CommandEmpty, { children: "
|
|
10536
|
+
/* @__PURE__ */ jsx(CommandEmpty, { children: t("MULTI_SELECT.NO_RESULTS") }),
|
|
10378
10537
|
/* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => {
|
|
10379
10538
|
const isSelected = selectedValues.includes(option.value);
|
|
10380
10539
|
return /* @__PURE__ */ jsxs(
|
|
@@ -10405,7 +10564,7 @@ function MultiSelect2({
|
|
|
10405
10564
|
{
|
|
10406
10565
|
onSelect: () => onResetHandler(),
|
|
10407
10566
|
className: "justify-center text-center",
|
|
10408
|
-
children: "
|
|
10567
|
+
children: t("common:CLEAR")
|
|
10409
10568
|
}
|
|
10410
10569
|
) })
|
|
10411
10570
|
] })
|
|
@@ -10416,6 +10575,7 @@ function MultiSelect2({
|
|
|
10416
10575
|
] });
|
|
10417
10576
|
}
|
|
10418
10577
|
var ResetButton = ({ onClick }) => {
|
|
10578
|
+
const { t } = useT("genesis.shared");
|
|
10419
10579
|
return /* @__PURE__ */ jsxs(
|
|
10420
10580
|
Button,
|
|
10421
10581
|
{
|
|
@@ -10424,7 +10584,7 @@ var ResetButton = ({ onClick }) => {
|
|
|
10424
10584
|
onClick,
|
|
10425
10585
|
className: "h-8 rounded-md px-2 lg:px-3",
|
|
10426
10586
|
children: [
|
|
10427
|
-
"
|
|
10587
|
+
t("common:RESET"),
|
|
10428
10588
|
/* @__PURE__ */ jsx(X, { className: "ml-2 h-4 w-4" })
|
|
10429
10589
|
]
|
|
10430
10590
|
}
|
|
@@ -10432,10 +10592,11 @@ var ResetButton = ({ onClick }) => {
|
|
|
10432
10592
|
};
|
|
10433
10593
|
var SearchInput = ({
|
|
10434
10594
|
onChange,
|
|
10435
|
-
placeholder
|
|
10595
|
+
placeholder,
|
|
10436
10596
|
value,
|
|
10437
10597
|
className = ""
|
|
10438
10598
|
}) => {
|
|
10599
|
+
const { t } = useT("genesis.shared");
|
|
10439
10600
|
const [state, setState] = useState(value);
|
|
10440
10601
|
const inputRef = useRef(null);
|
|
10441
10602
|
useEffect(() => {
|
|
@@ -10467,7 +10628,7 @@ var SearchInput = ({
|
|
|
10467
10628
|
Input,
|
|
10468
10629
|
{
|
|
10469
10630
|
ref: inputRef,
|
|
10470
|
-
placeholder,
|
|
10631
|
+
placeholder: placeholder ?? t("SEARCH_INPUT.PLACEHOLDER"),
|
|
10471
10632
|
value: state,
|
|
10472
10633
|
onChange: handleChange,
|
|
10473
10634
|
className: cn(
|
|
@@ -10501,12 +10662,13 @@ var ProjectToolbar = ({
|
|
|
10501
10662
|
searchText,
|
|
10502
10663
|
viewMode
|
|
10503
10664
|
}) => {
|
|
10665
|
+
const { t } = useT("genesis.console");
|
|
10504
10666
|
const hasActiveFilters = searchText.trim().length > 0 || environmentFilter.length > 0;
|
|
10505
10667
|
return /* @__PURE__ */ jsxs(
|
|
10506
10668
|
"div",
|
|
10507
10669
|
{
|
|
10508
10670
|
className: "flex flex-wrap items-center justify-between gap-3",
|
|
10509
|
-
"aria-label": "
|
|
10671
|
+
"aria-label": t("PROJECT_TOOLBAR.FILTERS_ARIA"),
|
|
10510
10672
|
children: [
|
|
10511
10673
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
10512
10674
|
/* @__PURE__ */ jsx(
|
|
@@ -10514,13 +10676,13 @@ var ProjectToolbar = ({
|
|
|
10514
10676
|
{
|
|
10515
10677
|
value: searchText,
|
|
10516
10678
|
onChange: onSearchTextChange,
|
|
10517
|
-
placeholder: "
|
|
10679
|
+
placeholder: t("PROJECT_TOOLBAR.SEARCH_PLACEHOLDER")
|
|
10518
10680
|
}
|
|
10519
10681
|
),
|
|
10520
10682
|
/* @__PURE__ */ jsx(
|
|
10521
10683
|
MultiSelect2,
|
|
10522
10684
|
{
|
|
10523
|
-
label: "
|
|
10685
|
+
label: t("PROJECT_TOOLBAR.ENVIRONMENT"),
|
|
10524
10686
|
options: availableEnvironmentOptions,
|
|
10525
10687
|
value: environmentFilter,
|
|
10526
10688
|
onChange: onEnvironmentFilterChange
|
|
@@ -10538,14 +10700,14 @@ var ProjectToolbar = ({
|
|
|
10538
10700
|
onValueChange: (value) => {
|
|
10539
10701
|
if (value === "grid" || value === "list") onViewModeChange(value);
|
|
10540
10702
|
},
|
|
10541
|
-
"aria-label": "
|
|
10703
|
+
"aria-label": t("PROJECT_TOOLBAR.VIEW_ARIA"),
|
|
10542
10704
|
className: "h-8 rounded-md border bg-background p-0.5",
|
|
10543
10705
|
children: [
|
|
10544
10706
|
/* @__PURE__ */ jsx(
|
|
10545
10707
|
ToggleGroupItem,
|
|
10546
10708
|
{
|
|
10547
10709
|
value: "grid",
|
|
10548
|
-
"aria-label": "
|
|
10710
|
+
"aria-label": t("PROJECT_TOOLBAR.GRID_VIEW"),
|
|
10549
10711
|
className: "h-7 w-7 min-w-0 border-0 px-0",
|
|
10550
10712
|
children: /* @__PURE__ */ jsx(LayoutGrid, { className: "h-4 w-4" })
|
|
10551
10713
|
}
|
|
@@ -10554,7 +10716,7 @@ var ProjectToolbar = ({
|
|
|
10554
10716
|
ToggleGroupItem,
|
|
10555
10717
|
{
|
|
10556
10718
|
value: "list",
|
|
10557
|
-
"aria-label": "
|
|
10719
|
+
"aria-label": t("PROJECT_TOOLBAR.LIST_VIEW"),
|
|
10558
10720
|
className: "h-7 w-7 min-w-0 border-0 px-0",
|
|
10559
10721
|
children: /* @__PURE__ */ jsx(List, { className: "h-4 w-4" })
|
|
10560
10722
|
}
|
|
@@ -10662,6 +10824,7 @@ var SelfProjectLoading = ({ viewMode }) => {
|
|
|
10662
10824
|
) });
|
|
10663
10825
|
};
|
|
10664
10826
|
var SelfProject = ({ canCreateProject = false }) => {
|
|
10827
|
+
const { t } = useT("genesis.console");
|
|
10665
10828
|
const { data, isLoading } = useGetProjects({ enabled: true });
|
|
10666
10829
|
const isPending = isLoading;
|
|
10667
10830
|
const projectGroups = data || [];
|
|
@@ -10728,10 +10891,10 @@ var SelfProject = ({ canCreateProject = false }) => {
|
|
|
10728
10891
|
return /* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-4", children: [
|
|
10729
10892
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between sm:gap-3", children: [
|
|
10730
10893
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
10731
|
-
/* @__PURE__ */ jsx("h2", { className: "shrink-0 text-base font-semibold text-[hsl(var(--high-emphasis))]", children: "
|
|
10894
|
+
/* @__PURE__ */ jsx("h2", { className: "shrink-0 text-base font-semibold text-[hsl(var(--high-emphasis))]", children: t("SELF_PROJECT.YOUR_PROJECTS") }),
|
|
10732
10895
|
isPending ? /* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-8 rounded-full" }) : /* @__PURE__ */ jsx("span", { className: "bg-primary/10 text-primary shrink-0 rounded-full px-2 py-0.5 text-xs font-semibold", children: projectGroups.length })
|
|
10733
10896
|
] }),
|
|
10734
|
-
!isPending && canCreateProject && hasReachedProjectLimit && /* @__PURE__ */ jsx("span", { className: "text-sm text-[hsl(var(--medium-emphasis))]", children: "
|
|
10897
|
+
!isPending && canCreateProject && hasReachedProjectLimit && /* @__PURE__ */ jsx("span", { className: "text-sm text-[hsl(var(--medium-emphasis))]", children: t("SELF_PROJECT.DELETE_TO_CREATE") })
|
|
10735
10898
|
] }),
|
|
10736
10899
|
(isPending || projectGroups.length > 0) && /* @__PURE__ */ jsx(
|
|
10737
10900
|
ProjectToolbar,
|
|
@@ -10748,7 +10911,7 @@ var SelfProject = ({ canCreateProject = false }) => {
|
|
|
10748
10911
|
),
|
|
10749
10912
|
projectsContent,
|
|
10750
10913
|
hasNoMatches && /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center gap-3 rounded-xl border border-dashed px-6 py-10 text-center", children: [
|
|
10751
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-muted-foreground", children: searchText.trim() ? "
|
|
10914
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-muted-foreground", children: searchText.trim() ? t("SELF_PROJECT.NO_SEARCH_MATCH") : t("SELF_PROJECT.NO_FILTER_MATCH") }),
|
|
10752
10915
|
/* @__PURE__ */ jsx(
|
|
10753
10916
|
Button,
|
|
10754
10917
|
{
|
|
@@ -10759,13 +10922,14 @@ var SelfProject = ({ canCreateProject = false }) => {
|
|
|
10759
10922
|
if (searchText.trim()) setSearchText("");
|
|
10760
10923
|
else setEnvironmentFilter([]);
|
|
10761
10924
|
},
|
|
10762
|
-
children: searchText.trim() ? "
|
|
10925
|
+
children: searchText.trim() ? t("SELF_PROJECT.CLEAR_SEARCH") : t("SELF_PROJECT.CLEAR_FILTERS")
|
|
10763
10926
|
}
|
|
10764
10927
|
)
|
|
10765
10928
|
] })
|
|
10766
10929
|
] });
|
|
10767
10930
|
};
|
|
10768
10931
|
var ConsolePage = ({ canCreateProject = false }) => {
|
|
10932
|
+
const { t } = useT("genesis.console");
|
|
10769
10933
|
const { resetSelectedProject, resetTenantGroup } = useProjectStore();
|
|
10770
10934
|
useEffect(() => {
|
|
10771
10935
|
resetSelectedProject();
|
|
@@ -10777,7 +10941,7 @@ var ConsolePage = ({ canCreateProject = false }) => {
|
|
|
10777
10941
|
/* @__PURE__ */ jsxs("div", { className: "relative flex flex-1 flex-col gap-12 px-6 py-10 sm:px-10 xl:px-[154px]", children: [
|
|
10778
10942
|
/* @__PURE__ */ jsx(SelfProject, { canCreateProject }),
|
|
10779
10943
|
/* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-5", children: [
|
|
10780
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsx("span", { className: "bg-primary/10 text-primary inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold tracking-wide", children: "
|
|
10944
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsx("span", { className: "bg-primary/10 text-primary inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold tracking-wide", children: t("CONSOLE_PAGE.RESOURCES") }) }),
|
|
10781
10945
|
/* @__PURE__ */ jsx(DefaultDoc, {})
|
|
10782
10946
|
] })
|
|
10783
10947
|
] })
|
|
@@ -10853,6 +11017,7 @@ var CallbackPage = ({ defaultRedirectUrl }) => {
|
|
|
10853
11017
|
return /* @__PURE__ */ jsx("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsx(Loader, { className: "h-12 w-12 animate-spin text-gray-500" }) });
|
|
10854
11018
|
};
|
|
10855
11019
|
function ProfilePage() {
|
|
11020
|
+
const { t } = useT("genesis.profile");
|
|
10856
11021
|
const { isLoading, error } = useInitiateRedirect({
|
|
10857
11022
|
clientId: getRuntimeEnv("BLOCKS_IAM_CLIENT_ID"),
|
|
10858
11023
|
redirectUri: getRuntimeEnv("BLOCKS_IAM_CALLBACK_URL"),
|
|
@@ -10860,11 +11025,11 @@ function ProfilePage() {
|
|
|
10860
11025
|
});
|
|
10861
11026
|
if (error)
|
|
10862
11027
|
return /* @__PURE__ */ jsx("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
|
|
10863
|
-
/* @__PURE__ */ jsx("p", { className: "text-lg font-medium text-destructive", children: "
|
|
10864
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: "
|
|
11028
|
+
/* @__PURE__ */ jsx("p", { className: "text-lg font-medium text-destructive", children: t("PROFILE_PAGE.REDIRECT_FAILED") }),
|
|
11029
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: t("PROFILE_PAGE.CHECK_CONSOLE") })
|
|
10865
11030
|
] }) });
|
|
10866
11031
|
if (isLoading)
|
|
10867
|
-
return /* @__PURE__ */ jsx("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "
|
|
11032
|
+
return /* @__PURE__ */ jsx("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("PROFILE_PAGE.REDIRECTING") }) });
|
|
10868
11033
|
return null;
|
|
10869
11034
|
}
|
|
10870
11035
|
|
|
@@ -10907,6 +11072,7 @@ var CoreApiEndpointRow = ({
|
|
|
10907
11072
|
endpoint,
|
|
10908
11073
|
xBlocksKey
|
|
10909
11074
|
}) => {
|
|
11075
|
+
const { t } = useT("genesis.dashboard");
|
|
10910
11076
|
const curlCommand = buildCurlCommand(endpoint, xBlocksKey);
|
|
10911
11077
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1 rounded-md border border-border-default px-3 py-2 sm:flex-row sm:items-center sm:gap-3", children: [
|
|
10912
11078
|
endpoint.method && /* @__PURE__ */ jsx(
|
|
@@ -10925,7 +11091,7 @@ var CoreApiEndpointRow = ({
|
|
|
10925
11091
|
] }),
|
|
10926
11092
|
/* @__PURE__ */ jsx(CopyToClipboardButton, { textToCopy: curlCommand, isHoverable: true, children: /* @__PURE__ */ jsxs("span", { className: "flex shrink-0 items-center gap-1 whitespace-nowrap text-xs text-muted-foreground", children: [
|
|
10927
11093
|
/* @__PURE__ */ jsx(Terminal, { className: "h-3.5 w-3.5" }),
|
|
10928
|
-
"
|
|
11094
|
+
t("CORE_API_ENDPOINT_ROW.COPY_CURL")
|
|
10929
11095
|
] }) })
|
|
10930
11096
|
] });
|
|
10931
11097
|
};
|
|
@@ -10992,30 +11158,27 @@ var CoreApiLoadingSkeleton = () => /* @__PURE__ */ jsxs("div", { className: "rou
|
|
|
10992
11158
|
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-1.5 border-t border-border px-2 py-2 sm:px-4 sm:py-3", children: ["sk-1", "sk-2", "sk-3", "sk-4"].map((itemKey) => /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" }, itemKey)) })
|
|
10993
11159
|
] });
|
|
10994
11160
|
var CoreApiCard = ({
|
|
10995
|
-
title
|
|
10996
|
-
description
|
|
11161
|
+
title,
|
|
11162
|
+
description,
|
|
10997
11163
|
endpoints,
|
|
10998
11164
|
xBlocksKey,
|
|
10999
11165
|
isLoading,
|
|
11000
11166
|
error
|
|
11001
11167
|
}) => {
|
|
11168
|
+
const { t } = useT("genesis.dashboard");
|
|
11002
11169
|
if (isLoading) return /* @__PURE__ */ jsx(CoreApiLoadingSkeleton, {});
|
|
11003
11170
|
const groups = groupEndpointsByTag(endpoints);
|
|
11004
11171
|
return /* @__PURE__ */ jsx(
|
|
11005
11172
|
DashboardSectionCard,
|
|
11006
11173
|
{
|
|
11007
|
-
title,
|
|
11008
|
-
description,
|
|
11174
|
+
title: title ?? t("CORE_API_CARD.TITLE"),
|
|
11175
|
+
description: description ?? t("CORE_API_CARD.DESCRIPTION"),
|
|
11009
11176
|
contentClassName: "flex flex-col gap-2",
|
|
11010
11177
|
headerRight: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11011
|
-
/* @__PURE__ */
|
|
11012
|
-
endpoints.length,
|
|
11013
|
-
" Endpoint",
|
|
11014
|
-
endpoints.length !== 1 ? "s" : ""
|
|
11015
|
-
] }),
|
|
11178
|
+
/* @__PURE__ */ jsx(Badge, { className: "hidden rounded-full bg-primary/10 font-mono text-xs text-primary pointer-events-none sm:flex", children: t("CORE_API_CARD.ENDPOINTS", { count: endpoints.length }) }),
|
|
11016
11179
|
/* @__PURE__ */ jsx("span", { className: "flex rounded-full bg-primary/10 px-1.5 py-0.5 text-[10px] font-mono font-medium text-primary pointer-events-none sm:hidden", children: endpoints.length })
|
|
11017
11180
|
] }),
|
|
11018
|
-
children: groups.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-1 py-3 text-center text-sm text-muted-foreground", children: error ? "
|
|
11181
|
+
children: groups.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-1 py-3 text-center text-sm text-muted-foreground", children: error ? t("CORE_API_CARD.LOAD_ERROR") : t("CORE_API_CARD.EMPTY") }) : groups.map((group) => /* @__PURE__ */ jsx(
|
|
11019
11182
|
CoreApiGroupSection,
|
|
11020
11183
|
{
|
|
11021
11184
|
tag: group.tag,
|
|
@@ -11112,24 +11275,27 @@ var ConfirmationModal = ({
|
|
|
11112
11275
|
data,
|
|
11113
11276
|
onConfirm,
|
|
11114
11277
|
buttonState
|
|
11115
|
-
}) =>
|
|
11116
|
-
|
|
11117
|
-
|
|
11118
|
-
/* @__PURE__ */
|
|
11119
|
-
|
|
11120
|
-
|
|
11121
|
-
|
|
11122
|
-
/* @__PURE__ */
|
|
11123
|
-
Button,
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
|
|
11130
|
-
|
|
11131
|
-
|
|
11132
|
-
|
|
11278
|
+
}) => {
|
|
11279
|
+
const { t } = useT("genesis.shared");
|
|
11280
|
+
return /* @__PURE__ */ jsxs(DialogContent, { className: "mr-4 w-full max-w-[425px] rounded-md", children: [
|
|
11281
|
+
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
11282
|
+
/* @__PURE__ */ jsx(DialogTitle, { className: "text-left text-lg font-semibold leading-7", children: data.dialogTitle }),
|
|
11283
|
+
/* @__PURE__ */ jsx(DialogDescription, { className: "mb-6 mt-2 wrap-break-word text-left text-sm font-normal leading-5 text-medium-emphasis", children: data.dialogSubtitle })
|
|
11284
|
+
] }),
|
|
11285
|
+
/* @__PURE__ */ jsxs(DialogFooter, { className: "mt-4 flex flex-row gap-2", children: [
|
|
11286
|
+
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", children: data.cancelButton || t("common:CANCEL") }) }),
|
|
11287
|
+
/* @__PURE__ */ jsx(
|
|
11288
|
+
Button,
|
|
11289
|
+
{
|
|
11290
|
+
size: "sm",
|
|
11291
|
+
onClick: onConfirm,
|
|
11292
|
+
disabled: buttonState?.confirm.disable,
|
|
11293
|
+
children: data.confirmButton || t("common:YES")
|
|
11294
|
+
}
|
|
11295
|
+
)
|
|
11296
|
+
] })
|
|
11297
|
+
] });
|
|
11298
|
+
};
|
|
11133
11299
|
var DashboardOverview = () => {
|
|
11134
11300
|
const { name } = useBlocksAppConfigStore((state) => state.config);
|
|
11135
11301
|
const { data, isFetching } = useGetProject();
|
|
@@ -11167,22 +11333,23 @@ var ProjectDetail = ({
|
|
|
11167
11333
|
project,
|
|
11168
11334
|
isLoading
|
|
11169
11335
|
}) => {
|
|
11336
|
+
const { t } = useT("genesis.shared");
|
|
11170
11337
|
if (isLoading) return /* @__PURE__ */ jsx(LoadingSkeleton, {});
|
|
11171
11338
|
if (!project)
|
|
11172
11339
|
return /* @__PURE__ */ jsx(
|
|
11173
11340
|
ErrorDisplayWithCard,
|
|
11174
11341
|
{
|
|
11175
|
-
text: "
|
|
11342
|
+
text: t("PROJECT_DETAIL.ERROR"),
|
|
11176
11343
|
containerClassName: "min-h-[20dvh]"
|
|
11177
11344
|
}
|
|
11178
11345
|
);
|
|
11179
11346
|
return /* @__PURE__ */ jsx(
|
|
11180
11347
|
DashboardSectionCard,
|
|
11181
11348
|
{
|
|
11182
|
-
title: "
|
|
11183
|
-
description: "
|
|
11349
|
+
title: t("PROJECT_DETAIL.TITLE"),
|
|
11350
|
+
description: t("PROJECT_DETAIL.DESCRIPTION"),
|
|
11184
11351
|
children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-2 md:gap-6", children: [
|
|
11185
|
-
/* @__PURE__ */ jsx(ProjectDetailItem, { label: "
|
|
11352
|
+
/* @__PURE__ */ jsx(ProjectDetailItem, { label: t("common:NAME"), children: project?.name }),
|
|
11186
11353
|
/* @__PURE__ */ jsx(ProjectDetailItem, { label: "X-Blocks-Key", children: /* @__PURE__ */ jsx("div", { className: "flex h-6 items-center gap-2", children: /* @__PURE__ */ jsx(
|
|
11187
11354
|
CopyToClipboardButton,
|
|
11188
11355
|
{
|
|
@@ -11199,7 +11366,7 @@ var ProjectDetail = ({
|
|
|
11199
11366
|
)
|
|
11200
11367
|
}
|
|
11201
11368
|
) }) }),
|
|
11202
|
-
/* @__PURE__ */ jsx(ProjectDetailItem, { label: "
|
|
11369
|
+
/* @__PURE__ */ jsx(ProjectDetailItem, { label: t("PROJECT_DETAIL.ENVIRONMENT"), children: project?.environment === "prod" ? /* @__PURE__ */ jsx(Button, { className: "h-6 rounded-xl", size: "sm", variant: "default", children: t("ENVIRONMENT_OPTIONS.PROD_LABEL") }) : /* @__PURE__ */ jsx(
|
|
11203
11370
|
Button,
|
|
11204
11371
|
{
|
|
11205
11372
|
className: "h-6 rounded-xl bg-blocks-btn-secondary hover:bg-blocks-btn-secondary/80",
|
|
@@ -11210,8 +11377,8 @@ var ProjectDetail = ({
|
|
|
11210
11377
|
)?.label
|
|
11211
11378
|
}
|
|
11212
11379
|
) }),
|
|
11213
|
-
/* @__PURE__ */ jsx(ProjectDetailItem, { label: "
|
|
11214
|
-
/* @__PURE__ */ jsx(ProjectDetailItem, { label: "
|
|
11380
|
+
/* @__PURE__ */ jsx(ProjectDetailItem, { label: t("PROJECT_DETAIL.LAST_UPDATED"), children: project?.lastUpdatedDate && formatFullDate(new Date(project.lastUpdatedDate)) }),
|
|
11381
|
+
/* @__PURE__ */ jsx(ProjectDetailItem, { label: t("PROJECT_DETAIL.CREATED"), children: project?.createdDate && formatFullDate(new Date(project.createdDate)) })
|
|
11215
11382
|
] })
|
|
11216
11383
|
}
|
|
11217
11384
|
);
|
|
@@ -11224,6 +11391,7 @@ function ProjectList2({
|
|
|
11224
11391
|
redirectPaths,
|
|
11225
11392
|
collapsed = false
|
|
11226
11393
|
}) {
|
|
11394
|
+
const { t } = useT("genesis.shared");
|
|
11227
11395
|
const navigate = useNavigate();
|
|
11228
11396
|
const { pathname } = useLocation();
|
|
11229
11397
|
const { data: projectGroups = [], isLoading } = useGetProjects({
|
|
@@ -11270,7 +11438,7 @@ function ProjectList2({
|
|
|
11270
11438
|
className: "group relative flex h-10 w-full items-center justify-center rounded-lg",
|
|
11271
11439
|
children: [
|
|
11272
11440
|
/* @__PURE__ */ jsx(FolderOpen, { className: "h-5 w-5 text-muted-foreground" }),
|
|
11273
|
-
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute left-full top-0 z-20 ml-2 min-w-max whitespace-nowrap rounded bg-gray-300 px-2 py-1 text-xs text-primary opacity-0 transition-opacity group-hover:opacity-100", children: name || "
|
|
11441
|
+
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute left-full top-0 z-20 ml-2 min-w-max whitespace-nowrap rounded bg-gray-300 px-2 py-1 text-xs text-primary opacity-0 transition-opacity group-hover:opacity-100", children: name || t("PROJECT_LIST.SELECT_PROJECT") })
|
|
11274
11442
|
]
|
|
11275
11443
|
}
|
|
11276
11444
|
) : /* @__PURE__ */ jsx(
|
|
@@ -11281,8 +11449,8 @@ function ProjectList2({
|
|
|
11281
11449
|
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5", children: [
|
|
11282
11450
|
/* @__PURE__ */ jsx(FolderOpen, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
|
|
11283
11451
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
11284
|
-
/* @__PURE__ */ jsx("div", { className: "text-[11px] font-medium uppercase tracking-wide text-muted-foreground", children: "
|
|
11285
|
-
/* @__PURE__ */ jsx("div", { className: "break-all text-sm font-medium leading-tight", children: name || "
|
|
11452
|
+
/* @__PURE__ */ jsx("div", { className: "text-[11px] font-medium uppercase tracking-wide text-muted-foreground", children: t("PROJECT_LIST.PROJECT") }),
|
|
11453
|
+
/* @__PURE__ */ jsx("div", { className: "break-all text-sm font-medium leading-tight", children: name || t("PROJECT_LIST.SELECT_PROJECT") })
|
|
11286
11454
|
] })
|
|
11287
11455
|
] })
|
|
11288
11456
|
}
|
|
@@ -11295,7 +11463,7 @@ function ProjectList2({
|
|
|
11295
11463
|
sideOffset: collapsed ? 8 : 4,
|
|
11296
11464
|
className: collapsed ? "min-w-48" : "w-[--radix-dropdown-menu-trigger-width]",
|
|
11297
11465
|
children: [
|
|
11298
|
-
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: "
|
|
11466
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: t("PROJECT_LIST.YOUR_PROJECTS") }),
|
|
11299
11467
|
isLoading ? /* @__PURE__ */ jsx(DropdownMenuItem, { disabled: true, children: /* @__PURE__ */ jsx("div", { className: "flex w-full items-center justify-center py-1", children: /* @__PURE__ */ jsx(Loader, { size: 16, className: "animate-spin text-gray-400" }) }) }) : projects?.filter((project) => project?.itemId !== selectedProject?.itemId).slice(0, 5).map((project) => /* @__PURE__ */ jsx(
|
|
11300
11468
|
DropdownMenuItem,
|
|
11301
11469
|
{
|
|
@@ -11305,14 +11473,16 @@ function ProjectList2({
|
|
|
11305
11473
|
project?.itemId
|
|
11306
11474
|
)),
|
|
11307
11475
|
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
11308
|
-
/* @__PURE__ */ jsx(DropdownMenuItem, { disabled: true, children: "
|
|
11476
|
+
/* @__PURE__ */ jsx(DropdownMenuItem, { disabled: true, children: t("PROJECT_LIST.OVERVIEW_UNAVAILABLE") })
|
|
11309
11477
|
]
|
|
11310
11478
|
}
|
|
11311
11479
|
)
|
|
11312
11480
|
] });
|
|
11313
11481
|
}
|
|
11314
11482
|
var formSchema = z.object({
|
|
11315
|
-
domain: z.string().min(1,
|
|
11483
|
+
domain: z.string().min(1, {
|
|
11484
|
+
error: () => tStatic("genesis.shared", "SET_CUSTOM_DOMAIN_FORM.REQUIRED")
|
|
11485
|
+
})
|
|
11316
11486
|
});
|
|
11317
11487
|
var SetCustomDomainForm = ({
|
|
11318
11488
|
defaultDomain,
|
|
@@ -11321,6 +11491,7 @@ var SetCustomDomainForm = ({
|
|
|
11321
11491
|
onSubmit,
|
|
11322
11492
|
onCancel
|
|
11323
11493
|
}) => {
|
|
11494
|
+
const { t } = useT("genesis.shared");
|
|
11324
11495
|
const form = useForm({
|
|
11325
11496
|
resolver: zodResolver(formSchema),
|
|
11326
11497
|
defaultValues: { domain: defaultDomain }
|
|
@@ -11345,7 +11516,7 @@ var SetCustomDomainForm = ({
|
|
|
11345
11516
|
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(SelectTrigger, { className: "[&>span]:truncate [&>span]:text-left", children: /* @__PURE__ */ jsx(
|
|
11346
11517
|
SelectValue,
|
|
11347
11518
|
{
|
|
11348
|
-
placeholder: verifiedDomains.length === 0 ? "
|
|
11519
|
+
placeholder: verifiedDomains.length === 0 ? t("SET_CUSTOM_DOMAIN_FORM.NO_VERIFIED") : t("SET_CUSTOM_DOMAIN_FORM.SELECT")
|
|
11349
11520
|
}
|
|
11350
11521
|
) }) }),
|
|
11351
11522
|
/* @__PURE__ */ jsx(SelectContent, { className: "max-w-[calc(100vw-2rem)]", children: verifiedDomains.map((domain) => /* @__PURE__ */ jsx(
|
|
@@ -11365,8 +11536,8 @@ var SetCustomDomainForm = ({
|
|
|
11365
11536
|
}
|
|
11366
11537
|
),
|
|
11367
11538
|
/* @__PURE__ */ jsxs("div", { className: "mt-4 flex justify-end gap-2", children: [
|
|
11368
|
-
/* @__PURE__ */ jsx(Button, { type: "button", variant: "outline", onClick: onCancel, children: "
|
|
11369
|
-
/* @__PURE__ */ jsx(Button, { type: "submit", disabled: isPending, children: "
|
|
11539
|
+
/* @__PURE__ */ jsx(Button, { type: "button", variant: "outline", onClick: onCancel, children: t("common:CANCEL") }),
|
|
11540
|
+
/* @__PURE__ */ jsx(Button, { type: "submit", disabled: isPending, children: t("SET_CUSTOM_DOMAIN_FORM.SET") })
|
|
11370
11541
|
] })
|
|
11371
11542
|
] }) });
|
|
11372
11543
|
};
|
|
@@ -11379,6 +11550,7 @@ var SetCustomDomainDialog = ({
|
|
|
11379
11550
|
projectKey,
|
|
11380
11551
|
projectEnv
|
|
11381
11552
|
}) => {
|
|
11553
|
+
const { t } = useT("genesis.shared");
|
|
11382
11554
|
const { mutateAsync, isPending } = useUpdateRepositories();
|
|
11383
11555
|
const verifiedDomains = useMemo(
|
|
11384
11556
|
() => Array.from(
|
|
@@ -11406,7 +11578,9 @@ var SetCustomDomainDialog = ({
|
|
|
11406
11578
|
]
|
|
11407
11579
|
});
|
|
11408
11580
|
if (res.isSuccess) {
|
|
11409
|
-
showSuccessToast({
|
|
11581
|
+
showSuccessToast({
|
|
11582
|
+
description: t("SET_CUSTOM_DOMAIN_DIALOG.UPDATED")
|
|
11583
|
+
});
|
|
11410
11584
|
onOpenChange(false);
|
|
11411
11585
|
} else {
|
|
11412
11586
|
showErrorToast({ errors: res.errors });
|
|
@@ -11419,12 +11593,10 @@ var SetCustomDomainDialog = ({
|
|
|
11419
11593
|
};
|
|
11420
11594
|
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
11421
11595
|
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
11422
|
-
/* @__PURE__ */ jsx(DialogTitle, { children: "
|
|
11423
|
-
/* @__PURE__ */
|
|
11424
|
-
|
|
11425
|
-
|
|
11426
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium", children: repo?.repoName })
|
|
11427
|
-
] })
|
|
11596
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: t("SET_CUSTOM_DOMAIN_DIALOG.TITLE") }),
|
|
11597
|
+
/* @__PURE__ */ jsx(DialogDescription, { children: t("SET_CUSTOM_DOMAIN_DIALOG.DESCRIPTION", {
|
|
11598
|
+
name: repo?.repoName ?? ""
|
|
11599
|
+
}) })
|
|
11428
11600
|
] }),
|
|
11429
11601
|
/* @__PURE__ */ jsx(
|
|
11430
11602
|
SetCustomDomainForm,
|
|
@@ -11440,34 +11612,34 @@ var SetCustomDomainDialog = ({
|
|
|
11440
11612
|
] }) });
|
|
11441
11613
|
};
|
|
11442
11614
|
var columnHelper = createColumnHelper();
|
|
11443
|
-
var buildColumns = (onSet) => [
|
|
11615
|
+
var buildColumns = (t, onSet) => [
|
|
11444
11616
|
columnHelper.accessor("repoName", {
|
|
11445
|
-
header: "
|
|
11617
|
+
header: t("common:NAME"),
|
|
11446
11618
|
cell: (info) => /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-high-emphasis", children: info.getValue() })
|
|
11447
11619
|
}),
|
|
11448
11620
|
columnHelper.accessor("defaultDeploymentUrl", {
|
|
11449
|
-
header: "
|
|
11621
|
+
header: t("PROJECT_REPO_TABLE.COLUMN_DEPLOYMENT_DOMAIN"),
|
|
11450
11622
|
cell: (info) => /* @__PURE__ */ jsx("span", { className: "text-sm text-medium-emphasis", children: info.getValue() })
|
|
11451
11623
|
}),
|
|
11452
11624
|
columnHelper.accessor("customDeploymentUrl", {
|
|
11453
|
-
header: "
|
|
11625
|
+
header: t("PROJECT_REPO_TABLE.COLUMN_CUSTOM_DOMAIN"),
|
|
11454
11626
|
cell: ({ row }) => {
|
|
11455
11627
|
const repo = row.original;
|
|
11456
|
-
return repo.customDeploymentUrl ? /* @__PURE__ */ jsx("span", { className: "text-sm text-medium-emphasis", children: repo.customDeploymentUrl }) : /* @__PURE__ */ jsx(Button, { variant: "outline", size: "xxs", onClick: () => onSet(repo), children: /* @__PURE__ */ jsx("span", { className: "px-2", children: "
|
|
11628
|
+
return repo.customDeploymentUrl ? /* @__PURE__ */ jsx("span", { className: "text-sm text-medium-emphasis", children: repo.customDeploymentUrl }) : /* @__PURE__ */ jsx(Button, { variant: "outline", size: "xxs", onClick: () => onSet(repo), children: /* @__PURE__ */ jsx("span", { className: "px-2", children: t("PROJECT_REPO_TABLE.SET") }) });
|
|
11457
11629
|
}
|
|
11458
11630
|
}),
|
|
11459
11631
|
columnHelper.display({
|
|
11460
11632
|
id: "lastDeploymentDate",
|
|
11461
|
-
header: "
|
|
11633
|
+
header: t("PROJECT_REPO_TABLE.COLUMN_LAST_DEPLOYMENT"),
|
|
11462
11634
|
cell: ({ row }) => {
|
|
11463
11635
|
const repo = row.original;
|
|
11464
11636
|
const isDefaultDate = repo.lastDeploymentDate === "0001-01-01T00:00:00";
|
|
11465
|
-
return /* @__PURE__ */ jsx("div", { className: "text-sm text-medium-emphasis", children: !repo.lastDeploymentDate || isDefaultDate ? "
|
|
11637
|
+
return /* @__PURE__ */ jsx("div", { className: "text-sm text-medium-emphasis", children: !repo.lastDeploymentDate || isDefaultDate ? t("PROJECT_REPO_TABLE.NOT_DEPLOYED") : formatFullDate(new Date(repo.lastDeploymentDate)) });
|
|
11466
11638
|
}
|
|
11467
11639
|
}),
|
|
11468
11640
|
columnHelper.display({
|
|
11469
11641
|
id: "actions",
|
|
11470
|
-
header: "
|
|
11642
|
+
header: t("common:ACTIONS"),
|
|
11471
11643
|
cell: ({ row }) => {
|
|
11472
11644
|
const repo = row.original;
|
|
11473
11645
|
const hasCustomDomain = !!repo.customDeploymentUrl;
|
|
@@ -11476,7 +11648,7 @@ var buildColumns = (onSet) => [
|
|
|
11476
11648
|
{
|
|
11477
11649
|
variant: "ghost",
|
|
11478
11650
|
size: "icon",
|
|
11479
|
-
title: "
|
|
11651
|
+
title: t("PROJECT_REPO_TABLE.EDIT_CUSTOM_DOMAIN"),
|
|
11480
11652
|
disabled: !hasCustomDomain,
|
|
11481
11653
|
onClick: () => onSet(repo),
|
|
11482
11654
|
children: /* @__PURE__ */ jsx(Pencil, { className: "h-4 w-4 text-muted-foreground" })
|
|
@@ -11491,13 +11663,14 @@ var ProjectRepoTable = ({
|
|
|
11491
11663
|
projectKey,
|
|
11492
11664
|
projectEnv
|
|
11493
11665
|
}) => {
|
|
11666
|
+
const { t } = useT("genesis.shared");
|
|
11494
11667
|
const [setTarget, setSetTarget] = useState(null);
|
|
11495
11668
|
const [setDialogOpen, setSetDialogOpen] = useState(false);
|
|
11496
11669
|
const handleSet = (repo) => {
|
|
11497
11670
|
setSetTarget(repo);
|
|
11498
11671
|
setSetDialogOpen(true);
|
|
11499
11672
|
};
|
|
11500
|
-
const columns = buildColumns(handleSet);
|
|
11673
|
+
const columns = buildColumns(t, handleSet);
|
|
11501
11674
|
const table = useReactTable({
|
|
11502
11675
|
data,
|
|
11503
11676
|
columns,
|
|
@@ -11538,7 +11711,7 @@ var ProjectRepoTable = ({
|
|
|
11538
11711
|
{
|
|
11539
11712
|
colSpan: columns.length,
|
|
11540
11713
|
className: "py-10 text-center text-sm text-muted-foreground",
|
|
11541
|
-
children: "
|
|
11714
|
+
children: t("PROJECT_REPO_TABLE.EMPTY")
|
|
11542
11715
|
}
|
|
11543
11716
|
) }) : table.getRowModel().rows.map((row) => /* @__PURE__ */ jsx(
|
|
11544
11717
|
"tr",
|
|
@@ -11558,6 +11731,7 @@ var ProjectRepoList = ({
|
|
|
11558
11731
|
project,
|
|
11559
11732
|
isLoading
|
|
11560
11733
|
}) => {
|
|
11734
|
+
const { t } = useT("genesis.shared");
|
|
11561
11735
|
const { applications } = project;
|
|
11562
11736
|
const {
|
|
11563
11737
|
data: envRepositoriesResponse,
|
|
@@ -11573,8 +11747,8 @@ var ProjectRepoList = ({
|
|
|
11573
11747
|
return /* @__PURE__ */ jsx(
|
|
11574
11748
|
DashboardSectionCard,
|
|
11575
11749
|
{
|
|
11576
|
-
title: "
|
|
11577
|
-
description: "
|
|
11750
|
+
title: t("PROJECT_REPO_LIST.TITLE"),
|
|
11751
|
+
description: t("PROJECT_REPO_LIST.DESCRIPTION"),
|
|
11578
11752
|
contentClassName: "p-0",
|
|
11579
11753
|
children: /* @__PURE__ */ jsx(
|
|
11580
11754
|
ProjectRepoTable,
|
|
@@ -11652,7 +11826,9 @@ var ProjectOverviewSkeleton = () => {
|
|
|
11652
11826
|
] });
|
|
11653
11827
|
};
|
|
11654
11828
|
var editProjectFormSchema = z.object({
|
|
11655
|
-
name: z.string().min(1,
|
|
11829
|
+
name: z.string().min(1, {
|
|
11830
|
+
error: () => tStatic("genesis.shared", "EDIT_PROJECT_FORM_SCHEMA.NAME_REQUIRED")
|
|
11831
|
+
})
|
|
11656
11832
|
});
|
|
11657
11833
|
var editProjectFormDefaultValues = {
|
|
11658
11834
|
name: ""
|
|
@@ -11662,6 +11838,7 @@ var EditProjectForm = ({
|
|
|
11662
11838
|
currentName,
|
|
11663
11839
|
onAfterSubmit
|
|
11664
11840
|
}) => {
|
|
11841
|
+
const { t } = useT("genesis.shared");
|
|
11665
11842
|
const queryClient = useQueryClient();
|
|
11666
11843
|
const { mutateAsync, isPending } = useUpdateTenantGroup();
|
|
11667
11844
|
const form = useForm({
|
|
@@ -11680,8 +11857,8 @@ var EditProjectForm = ({
|
|
|
11680
11857
|
});
|
|
11681
11858
|
if (res.isSuccess) {
|
|
11682
11859
|
showSuccessToast({
|
|
11683
|
-
title: "
|
|
11684
|
-
description: "
|
|
11860
|
+
title: t("EDIT_PROJECT_FORM.TOAST_TITLE"),
|
|
11861
|
+
description: t("EDIT_PROJECT_FORM.TOAST_DESCRIPTION")
|
|
11685
11862
|
});
|
|
11686
11863
|
queryClient.invalidateQueries({ queryKey: ["identifier", "project"] });
|
|
11687
11864
|
queryClient.invalidateQueries({ queryKey: ["identifier", "projects"] });
|
|
@@ -11708,14 +11885,20 @@ var EditProjectForm = ({
|
|
|
11708
11885
|
control: form.control,
|
|
11709
11886
|
name: "name",
|
|
11710
11887
|
render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { className: "space-y-1.5", children: [
|
|
11711
|
-
/* @__PURE__ */ jsx(FormLabel, { className: "text-sm font-medium text-medium-emphasis", children: "
|
|
11712
|
-
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(
|
|
11888
|
+
/* @__PURE__ */ jsx(FormLabel, { className: "text-sm font-medium text-medium-emphasis", children: t("EDIT_PROJECT_FORM.NAME_LABEL") }),
|
|
11889
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(
|
|
11890
|
+
Input,
|
|
11891
|
+
{
|
|
11892
|
+
...field,
|
|
11893
|
+
placeholder: t("EDIT_PROJECT_FORM.NAME_PLACEHOLDER")
|
|
11894
|
+
}
|
|
11895
|
+
) }),
|
|
11713
11896
|
/* @__PURE__ */ jsx(FormMessage, {})
|
|
11714
11897
|
] })
|
|
11715
11898
|
}
|
|
11716
11899
|
),
|
|
11717
11900
|
/* @__PURE__ */ jsxs(DialogFooter, { className: "mt-2 flex flex-row justify-end gap-2", children: [
|
|
11718
|
-
/* @__PURE__ */ jsx(DialogClose, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", className: "w-20", children: "
|
|
11901
|
+
/* @__PURE__ */ jsx(DialogClose, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", className: "w-20", children: t("common:CANCEL") }) }),
|
|
11719
11902
|
/* @__PURE__ */ jsx(
|
|
11720
11903
|
Button,
|
|
11721
11904
|
{
|
|
@@ -11723,7 +11906,7 @@ var EditProjectForm = ({
|
|
|
11723
11906
|
className: "w-20",
|
|
11724
11907
|
type: "submit",
|
|
11725
11908
|
disabled: !form.formState.isValid || isPending || !form.formState.isDirty,
|
|
11726
|
-
children: "
|
|
11909
|
+
children: t("common:SAVE")
|
|
11727
11910
|
}
|
|
11728
11911
|
)
|
|
11729
11912
|
] })
|
|
@@ -11737,10 +11920,11 @@ var EditProjectDialog = ({
|
|
|
11737
11920
|
tenantGroupId,
|
|
11738
11921
|
currentName
|
|
11739
11922
|
}) => {
|
|
11923
|
+
const { t } = useT("genesis.shared");
|
|
11740
11924
|
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, { className: "max-w-md", children: [
|
|
11741
11925
|
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
11742
|
-
/* @__PURE__ */ jsx(DialogTitle, { children: "
|
|
11743
|
-
/* @__PURE__ */ jsx(DialogDescription, { children: "
|
|
11926
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: t("EDIT_PROJECT_DIALOG.TITLE") }),
|
|
11927
|
+
/* @__PURE__ */ jsx(DialogDescription, { children: t("EDIT_PROJECT_DIALOG.DESCRIPTION") })
|
|
11744
11928
|
] }),
|
|
11745
11929
|
/* @__PURE__ */ jsx(
|
|
11746
11930
|
EditProjectForm,
|
|
@@ -11753,13 +11937,14 @@ var EditProjectDialog = ({
|
|
|
11753
11937
|
] }) });
|
|
11754
11938
|
};
|
|
11755
11939
|
function EditProject() {
|
|
11940
|
+
const { t } = useT("genesis.shared");
|
|
11756
11941
|
const [openEditDialog, setOpenEditDialog] = useState(false);
|
|
11757
11942
|
const { selectedProject } = useProjectStore();
|
|
11758
11943
|
const { tenantGroupId, name } = selectedProject || {};
|
|
11759
11944
|
return /* @__PURE__ */ jsxs(Dialog, { open: openEditDialog, onOpenChange: setOpenEditDialog, children: [
|
|
11760
11945
|
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "outline", size: "sm", className: "flex items-center gap-2", children: [
|
|
11761
11946
|
/* @__PURE__ */ jsx(Edit, { className: "h-4 w-4" }),
|
|
11762
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only sm:not-sr-only", children: "
|
|
11947
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only sm:not-sr-only", children: t("common:EDIT") })
|
|
11763
11948
|
] }) }),
|
|
11764
11949
|
/* @__PURE__ */ jsx(
|
|
11765
11950
|
EditProjectDialog,
|
|
@@ -11799,13 +11984,14 @@ function SidebarMobileView({
|
|
|
11799
11984
|
redirectPaths,
|
|
11800
11985
|
navigationMenus
|
|
11801
11986
|
}) {
|
|
11987
|
+
const { t } = useT("genesis.shared");
|
|
11802
11988
|
const [open, setOpen] = useState(false);
|
|
11803
11989
|
const { appLightLogo, appDarkLogo } = useLogo();
|
|
11804
11990
|
const allowedMenu = useFilteredMenus(navigationMenus);
|
|
11805
11991
|
return /* @__PURE__ */ jsxs(Sheet, { open, onOpenChange: setOpen, children: [
|
|
11806
11992
|
/* @__PURE__ */ jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "outline", size: "icon", className: "shrink-0", children: [
|
|
11807
11993
|
/* @__PURE__ */ jsx(Menu, { className: "h-5 w-5" }),
|
|
11808
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "
|
|
11994
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: t("SIDEBAR_MOBILE_VIEW.TOGGLE_MENU") })
|
|
11809
11995
|
] }) }),
|
|
11810
11996
|
/* @__PURE__ */ jsxs(
|
|
11811
11997
|
SheetContent,
|
|
@@ -11831,11 +12017,11 @@ function SidebarMobileView({
|
|
|
11831
12017
|
] }) }),
|
|
11832
12018
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
11833
12019
|
/* @__PURE__ */ jsxs("div", { className: "mt-3 flex w-full flex-col items-start px-6", children: [
|
|
11834
|
-
/* @__PURE__ */ jsx("div", { className: "ml-1 text-sm text-low-emphasis", children: "
|
|
12020
|
+
/* @__PURE__ */ jsx("div", { className: "ml-1 text-sm text-low-emphasis", children: t("SIDEBAR_MOBILE_VIEW.PROJECT") }),
|
|
11835
12021
|
/* @__PURE__ */ jsx(ProjectList2, { redirectPaths })
|
|
11836
12022
|
] }),
|
|
11837
12023
|
/* @__PURE__ */ jsxs("div", { className: "my-3 flex w-full flex-col items-start px-6", children: [
|
|
11838
|
-
/* @__PURE__ */ jsx("div", { className: "ml-1 text-sm text-low-emphasis", children: "
|
|
12024
|
+
/* @__PURE__ */ jsx("div", { className: "ml-1 text-sm text-low-emphasis", children: t("SIDEBAR_MOBILE_VIEW.ENVIRONMENT") }),
|
|
11839
12025
|
/* @__PURE__ */ jsx(EnvironmentList, { redirectPaths })
|
|
11840
12026
|
] }),
|
|
11841
12027
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
@@ -11849,6 +12035,7 @@ function SidebarMenuDesktop({
|
|
|
11849
12035
|
redirectPaths,
|
|
11850
12036
|
navigationMenus
|
|
11851
12037
|
}) {
|
|
12038
|
+
const { t } = useT("genesis.shared");
|
|
11852
12039
|
const { isSidebarOpen, toggleSidebar } = useContext(SidebarContext);
|
|
11853
12040
|
const { appLightLogo, appDarkLogo } = useLogo();
|
|
11854
12041
|
const icon = useIcon();
|
|
@@ -11898,7 +12085,7 @@ function SidebarMenuDesktop({
|
|
|
11898
12085
|
) })
|
|
11899
12086
|
] }),
|
|
11900
12087
|
isSidebarOpen ? /* @__PURE__ */ jsxs("div", { className: "border-b px-2 pb-2 pt-2", children: [
|
|
11901
|
-
/* @__PURE__ */ jsx("p", { className: "mb-1 px-2 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground", children: "
|
|
12088
|
+
/* @__PURE__ */ jsx("p", { className: "mb-1 px-2 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground", children: t("SIDEBAR_DESKTOP_VIEW.WORKSPACE") }),
|
|
11902
12089
|
/* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
|
|
11903
12090
|
/* @__PURE__ */ jsx(ProjectList2, { redirectPaths }),
|
|
11904
12091
|
/* @__PURE__ */ jsx(RenderConditionally, { condition: !isProjectOverviewRoute, children: /* @__PURE__ */ jsx(EnvironmentList, { redirectPaths }) })
|
|
@@ -11969,7 +12156,7 @@ var ErrorBoundary = class extends Component {
|
|
|
11969
12156
|
ErrorDisplay,
|
|
11970
12157
|
{
|
|
11971
12158
|
icon: AlertCircle,
|
|
11972
|
-
text: this.state.error?.message ?? "
|
|
12159
|
+
text: this.state.error?.message ?? tStatic("genesis.shared", "ERROR_BOUNDARY.DEFAULT"),
|
|
11973
12160
|
containerClassName: "h-full w-full min-h-100"
|
|
11974
12161
|
}
|
|
11975
12162
|
);
|
|
@@ -11978,6 +12165,7 @@ var ErrorBoundary = class extends Component {
|
|
|
11978
12165
|
}
|
|
11979
12166
|
};
|
|
11980
12167
|
var ArchiveProject = () => {
|
|
12168
|
+
const { t } = useT("genesis.shared");
|
|
11981
12169
|
const navigate = useNavigate();
|
|
11982
12170
|
const projectKey = useProjectStore().selectedProject?.tenantId || "";
|
|
11983
12171
|
const { mutateAsync, isPending } = useDisableProject({ projectKey });
|
|
@@ -11986,8 +12174,8 @@ var ArchiveProject = () => {
|
|
|
11986
12174
|
const res = await mutateAsync();
|
|
11987
12175
|
if (res.isSuccess) {
|
|
11988
12176
|
showSuccessToast({
|
|
11989
|
-
title: "
|
|
11990
|
-
description: "
|
|
12177
|
+
title: t("ARCHIVE_PROJECT.TOAST_TITLE"),
|
|
12178
|
+
description: t("ARCHIVE_PROJECT.TOAST_DESCRIPTION")
|
|
11991
12179
|
});
|
|
11992
12180
|
navigate("/app/console");
|
|
11993
12181
|
} else {
|
|
@@ -12009,7 +12197,7 @@ var ArchiveProject = () => {
|
|
|
12009
12197
|
className: "flex items-center gap-2",
|
|
12010
12198
|
children: [
|
|
12011
12199
|
/* @__PURE__ */ jsx(Archive, { className: "h-4 w-4" }),
|
|
12012
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only sm:not-sr-only", children: "
|
|
12200
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only sm:not-sr-only", children: t("common:DELETE") })
|
|
12013
12201
|
]
|
|
12014
12202
|
}
|
|
12015
12203
|
) }),
|
|
@@ -12019,12 +12207,12 @@ var ArchiveProject = () => {
|
|
|
12019
12207
|
onCancel: () => setOpen(false),
|
|
12020
12208
|
onConfirm: onClickHandler,
|
|
12021
12209
|
data: {
|
|
12022
|
-
dialogTitle: "
|
|
12210
|
+
dialogTitle: t("ARCHIVE_PROJECT.DIALOG_TITLE"),
|
|
12023
12211
|
dialogSubtitle: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12024
|
-
/* @__PURE__ */ jsx("p", { children: "
|
|
12025
|
-
/* @__PURE__ */ jsx("p", { children: "
|
|
12212
|
+
/* @__PURE__ */ jsx("p", { children: t("ARCHIVE_PROJECT.CONFIRM") }),
|
|
12213
|
+
/* @__PURE__ */ jsx("p", { children: t("ARCHIVE_PROJECT.WARNING") })
|
|
12026
12214
|
] }),
|
|
12027
|
-
confirmButton: "
|
|
12215
|
+
confirmButton: t("common:DELETE")
|
|
12028
12216
|
},
|
|
12029
12217
|
buttonState: { confirm: { disable: isPending } }
|
|
12030
12218
|
}
|
|
@@ -12711,6 +12899,7 @@ var CopyableSnippet = ({
|
|
|
12711
12899
|
language = "bash",
|
|
12712
12900
|
isCopyable = true
|
|
12713
12901
|
}) => {
|
|
12902
|
+
const { t } = useT("genesis.shared");
|
|
12714
12903
|
const [copied, setCopied] = useState(false);
|
|
12715
12904
|
const handleCopy = async () => {
|
|
12716
12905
|
try {
|
|
@@ -12740,7 +12929,7 @@ var CopyableSnippet = ({
|
|
|
12740
12929
|
{
|
|
12741
12930
|
onClick: handleCopy,
|
|
12742
12931
|
className: "absolute -top-[28px] right-2 z-10 text-muted-foreground transition hover:text-foreground",
|
|
12743
|
-
"aria-label": "
|
|
12932
|
+
"aria-label": t("COPYABLE_SNIPPET.COPY_CODE"),
|
|
12744
12933
|
children: copied ? /* @__PURE__ */ jsx(Check, { className: "h-4 w-4 text-green-500" }) : /* @__PURE__ */ jsx(Copy, { className: "h-4 w-4" })
|
|
12745
12934
|
}
|
|
12746
12935
|
),
|
|
@@ -12778,6 +12967,7 @@ function InfoTooltip({ content, side = "top" }) {
|
|
|
12778
12967
|
] });
|
|
12779
12968
|
}
|
|
12780
12969
|
function DateRange({ label, value, onChange }) {
|
|
12970
|
+
const { t } = useT("genesis.shared");
|
|
12781
12971
|
const isMobile = useIsMobile();
|
|
12782
12972
|
const [open, setOpen] = useState(false);
|
|
12783
12973
|
const [date, setDate] = useState(value);
|
|
@@ -12848,10 +13038,10 @@ function DateRange({ label, value, onChange }) {
|
|
|
12848
13038
|
variant: "outline",
|
|
12849
13039
|
className: "w-full",
|
|
12850
13040
|
onClick: resetBtnHandler,
|
|
12851
|
-
children: "
|
|
13041
|
+
children: t("common:RESET")
|
|
12852
13042
|
}
|
|
12853
13043
|
),
|
|
12854
|
-
/* @__PURE__ */ jsx(Button, { type: "button", className: "w-full", onClick: applyBtnHandler, children: "
|
|
13044
|
+
/* @__PURE__ */ jsx(Button, { type: "button", className: "w-full", onClick: applyBtnHandler, children: t("common:APPLY") })
|
|
12855
13045
|
] })
|
|
12856
13046
|
] })
|
|
12857
13047
|
]
|
|
@@ -12860,11 +13050,12 @@ function DateRange({ label, value, onChange }) {
|
|
|
12860
13050
|
}
|
|
12861
13051
|
var DropdownSearchInput = ({
|
|
12862
13052
|
onChange,
|
|
12863
|
-
placeholder
|
|
13053
|
+
placeholder,
|
|
12864
13054
|
value,
|
|
12865
13055
|
className = {},
|
|
12866
13056
|
options = []
|
|
12867
13057
|
}) => {
|
|
13058
|
+
const { t } = useT("genesis.shared");
|
|
12868
13059
|
const [state, setState] = useState(value);
|
|
12869
13060
|
const inputRef = useRef(null);
|
|
12870
13061
|
useEffect(() => {
|
|
@@ -12913,7 +13104,7 @@ var DropdownSearchInput = ({
|
|
|
12913
13104
|
Input,
|
|
12914
13105
|
{
|
|
12915
13106
|
ref: inputRef,
|
|
12916
|
-
placeholder,
|
|
13107
|
+
placeholder: placeholder ?? t("DROPDOWN_SEARCH_INPUT.PLACEHOLDER"),
|
|
12917
13108
|
value: state.value,
|
|
12918
13109
|
onChange: handleChange,
|
|
12919
13110
|
className: cn(
|
|
@@ -12938,17 +13129,19 @@ var DropdownSearchInput = ({
|
|
|
12938
13129
|
] });
|
|
12939
13130
|
};
|
|
12940
13131
|
var ClearButton = ({ onClear }) => {
|
|
13132
|
+
const { t } = useT("genesis.shared");
|
|
12941
13133
|
return /* @__PURE__ */ jsx("div", { className: "p-1", children: /* @__PURE__ */ jsx(
|
|
12942
13134
|
Button,
|
|
12943
13135
|
{
|
|
12944
13136
|
variant: "ghost",
|
|
12945
13137
|
className: "h-auto w-full rounded-sm px-2 py-1.5 font-medium text-accent-foreground hover:bg-accent",
|
|
12946
13138
|
onClick: onClear,
|
|
12947
|
-
children: "
|
|
13139
|
+
children: t("common:CLEAR")
|
|
12948
13140
|
}
|
|
12949
13141
|
) });
|
|
12950
13142
|
};
|
|
12951
13143
|
function Radio({ label, options, onChange, value }) {
|
|
13144
|
+
const { t } = useT("genesis.shared");
|
|
12952
13145
|
const [search, setSearch] = useState("");
|
|
12953
13146
|
const [buttonRef, popoverWidth] = usePopoverWidth();
|
|
12954
13147
|
const isMobile = useIsMobile();
|
|
@@ -13035,7 +13228,7 @@ function Radio({ label, options, onChange, value }) {
|
|
|
13035
13228
|
option.value
|
|
13036
13229
|
))
|
|
13037
13230
|
}
|
|
13038
|
-
) : /* @__PURE__ */ jsx("div", { className: "py-6 text-center text-sm !text-popover-foreground", children: "
|
|
13231
|
+
) : /* @__PURE__ */ jsx("div", { className: "py-6 text-center text-sm !text-popover-foreground", children: t("RADIO.NO_RESULTS") }) }),
|
|
13039
13232
|
value ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
13040
13233
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
13041
13234
|
/* @__PURE__ */ jsx(ClearButton, { onClear: () => onChange(null) })
|
|
@@ -13125,6 +13318,7 @@ var TablePagination = React8.forwardRef(
|
|
|
13125
13318
|
className,
|
|
13126
13319
|
...props
|
|
13127
13320
|
}, ref) => {
|
|
13321
|
+
const { t } = useT("genesis.shared");
|
|
13128
13322
|
const canPrev = pageIndex > 0;
|
|
13129
13323
|
const canNext = pageIndex < pageCount - 1;
|
|
13130
13324
|
return /* @__PURE__ */ jsxs(
|
|
@@ -13140,7 +13334,7 @@ var TablePagination = React8.forwardRef(
|
|
|
13140
13334
|
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: summary }),
|
|
13141
13335
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-4", children: [
|
|
13142
13336
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
13143
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: "
|
|
13337
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: t("TABLE_PAGINATION.ROWS_PER_PAGE") }),
|
|
13144
13338
|
/* @__PURE__ */ jsxs(
|
|
13145
13339
|
Select,
|
|
13146
13340
|
{
|
|
@@ -13153,12 +13347,10 @@ var TablePagination = React8.forwardRef(
|
|
|
13153
13347
|
}
|
|
13154
13348
|
)
|
|
13155
13349
|
] }),
|
|
13156
|
-
/* @__PURE__ */
|
|
13157
|
-
|
|
13158
|
-
|
|
13159
|
-
|
|
13160
|
-
Math.max(pageCount, 1)
|
|
13161
|
-
] }),
|
|
13350
|
+
/* @__PURE__ */ jsx("div", { className: "flex w-[120px] items-center justify-center text-sm font-medium", children: t("TABLE_PAGINATION.PAGE_OF", {
|
|
13351
|
+
page: pageIndex + 1,
|
|
13352
|
+
total: Math.max(pageCount, 1)
|
|
13353
|
+
}) }),
|
|
13162
13354
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
13163
13355
|
/* @__PURE__ */ jsx(
|
|
13164
13356
|
Button,
|
|
@@ -13168,7 +13360,7 @@ var TablePagination = React8.forwardRef(
|
|
|
13168
13360
|
className: "hidden size-8 lg:flex",
|
|
13169
13361
|
onClick: () => onPageChange(0),
|
|
13170
13362
|
disabled: !canPrev,
|
|
13171
|
-
"aria-label": "
|
|
13363
|
+
"aria-label": t("TABLE_PAGINATION.FIRST_PAGE"),
|
|
13172
13364
|
children: /* @__PURE__ */ jsx(ChevronsLeft, { className: "size-4" })
|
|
13173
13365
|
}
|
|
13174
13366
|
),
|
|
@@ -13180,7 +13372,7 @@ var TablePagination = React8.forwardRef(
|
|
|
13180
13372
|
className: "size-8",
|
|
13181
13373
|
onClick: () => onPageChange(pageIndex - 1),
|
|
13182
13374
|
disabled: !canPrev,
|
|
13183
|
-
"aria-label": "
|
|
13375
|
+
"aria-label": t("TABLE_PAGINATION.PREVIOUS_PAGE"),
|
|
13184
13376
|
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "size-4" })
|
|
13185
13377
|
}
|
|
13186
13378
|
),
|
|
@@ -13192,7 +13384,7 @@ var TablePagination = React8.forwardRef(
|
|
|
13192
13384
|
className: "size-8",
|
|
13193
13385
|
onClick: () => onPageChange(pageIndex + 1),
|
|
13194
13386
|
disabled: !canNext,
|
|
13195
|
-
"aria-label": "
|
|
13387
|
+
"aria-label": t("TABLE_PAGINATION.NEXT_PAGE"),
|
|
13196
13388
|
children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-4" })
|
|
13197
13389
|
}
|
|
13198
13390
|
),
|
|
@@ -13204,7 +13396,7 @@ var TablePagination = React8.forwardRef(
|
|
|
13204
13396
|
className: "hidden size-8 lg:flex",
|
|
13205
13397
|
onClick: () => onPageChange(pageCount - 1),
|
|
13206
13398
|
disabled: !canNext,
|
|
13207
|
-
"aria-label": "
|
|
13399
|
+
"aria-label": t("TABLE_PAGINATION.LAST_PAGE"),
|
|
13208
13400
|
children: /* @__PURE__ */ jsx(ChevronsRight, { className: "size-4" })
|
|
13209
13401
|
}
|
|
13210
13402
|
)
|
|
@@ -13282,6 +13474,7 @@ var FilterToolBarMobileView = ({
|
|
|
13282
13474
|
showReset,
|
|
13283
13475
|
onReset
|
|
13284
13476
|
}) => {
|
|
13477
|
+
const { t } = useT("genesis.shared");
|
|
13285
13478
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 md:hidden", children: [
|
|
13286
13479
|
/* @__PURE__ */ jsx("div", { className: "min-w-0 max-w-72 flex-1", children: Components[0] }),
|
|
13287
13480
|
Components.length > 1 && /* @__PURE__ */ jsxs(Sheet, { children: [
|
|
@@ -13301,11 +13494,11 @@ var FilterToolBarMobileView = ({
|
|
|
13301
13494
|
className: "w-full",
|
|
13302
13495
|
"aria-describedby": "filter-description",
|
|
13303
13496
|
children: [
|
|
13304
|
-
/* @__PURE__ */ jsx(SheetTitle, { className: "mb-4", children: "
|
|
13497
|
+
/* @__PURE__ */ jsx(SheetTitle, { className: "mb-4", children: t("FILTER_TOOLBAR.TITLE") }),
|
|
13305
13498
|
/* @__PURE__ */ jsx(SheetDescription, {}),
|
|
13306
13499
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-4", children: [
|
|
13307
13500
|
Components.slice(1).map((item) => item),
|
|
13308
|
-
/* @__PURE__ */ jsx(SheetClose, { asChild: true, children: /* @__PURE__ */ jsx(Button, { className: "mt-4", size: "sm", children: "
|
|
13501
|
+
/* @__PURE__ */ jsx(SheetClose, { asChild: true, children: /* @__PURE__ */ jsx(Button, { className: "mt-4", size: "sm", children: t("FILTER_TOOLBAR.SHOW_RESULTS") }) }),
|
|
13309
13502
|
showReset && /* @__PURE__ */ jsx(
|
|
13310
13503
|
ResetButton,
|
|
13311
13504
|
{
|
|
@@ -13413,6 +13606,7 @@ function DataTable(props) {
|
|
|
13413
13606
|
tableOptions,
|
|
13414
13607
|
renderHeaderCell
|
|
13415
13608
|
} = props;
|
|
13609
|
+
const { t } = useT("genesis.shared");
|
|
13416
13610
|
const sortNamespace = "sortNamespace" in props ? props.sortNamespace : void 0;
|
|
13417
13611
|
const defaultSortValue = "defaultSortValue" in props ? props.defaultSortValue : void 0;
|
|
13418
13612
|
const ns = sortNamespace ?? "dt";
|
|
@@ -13473,7 +13667,7 @@ function DataTable(props) {
|
|
|
13473
13667
|
{
|
|
13474
13668
|
colSpan: table.getAllColumns().length,
|
|
13475
13669
|
className: "h-24 text-center text-muted-foreground",
|
|
13476
|
-
children: renderEmptyState ?? "
|
|
13670
|
+
children: renderEmptyState ?? t("DATA_TABLE.NO_RESULTS")
|
|
13477
13671
|
}
|
|
13478
13672
|
) }) });
|
|
13479
13673
|
const tableNode = /* @__PURE__ */ jsxs(Table, { className: "text-sm", children: [
|
|
@@ -13510,6 +13704,7 @@ var TablePagination2 = React8.forwardRef(
|
|
|
13510
13704
|
className,
|
|
13511
13705
|
...props
|
|
13512
13706
|
}, ref) => {
|
|
13707
|
+
const { t } = useT("genesis.shared");
|
|
13513
13708
|
const canPrev = pageIndex > 0;
|
|
13514
13709
|
const canNext = pageIndex < pageCount - 1;
|
|
13515
13710
|
return /* @__PURE__ */ jsxs(
|
|
@@ -13525,7 +13720,7 @@ var TablePagination2 = React8.forwardRef(
|
|
|
13525
13720
|
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: summary }),
|
|
13526
13721
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-4", children: [
|
|
13527
13722
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
13528
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: "
|
|
13723
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: t("DATA_TABLE_PAGINATION.ROWS_PER_PAGE") }),
|
|
13529
13724
|
/* @__PURE__ */ jsxs(
|
|
13530
13725
|
Select,
|
|
13531
13726
|
{
|
|
@@ -13538,12 +13733,10 @@ var TablePagination2 = React8.forwardRef(
|
|
|
13538
13733
|
}
|
|
13539
13734
|
)
|
|
13540
13735
|
] }),
|
|
13541
|
-
/* @__PURE__ */
|
|
13542
|
-
|
|
13543
|
-
|
|
13544
|
-
|
|
13545
|
-
Math.max(pageCount, 1)
|
|
13546
|
-
] }),
|
|
13736
|
+
/* @__PURE__ */ jsx("div", { className: "flex w-[120px] items-center justify-center text-sm font-medium", children: t("DATA_TABLE_PAGINATION.PAGE_OF", {
|
|
13737
|
+
page: pageIndex + 1,
|
|
13738
|
+
total: Math.max(pageCount, 1)
|
|
13739
|
+
}) }),
|
|
13547
13740
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
13548
13741
|
/* @__PURE__ */ jsx(
|
|
13549
13742
|
Button,
|
|
@@ -13553,7 +13746,7 @@ var TablePagination2 = React8.forwardRef(
|
|
|
13553
13746
|
className: "hidden size-8 lg:flex",
|
|
13554
13747
|
onClick: () => onPageChange(0),
|
|
13555
13748
|
disabled: !canPrev,
|
|
13556
|
-
"aria-label": "
|
|
13749
|
+
"aria-label": t("DATA_TABLE_PAGINATION.FIRST_PAGE"),
|
|
13557
13750
|
children: /* @__PURE__ */ jsx(ChevronsLeft, { className: "size-4" })
|
|
13558
13751
|
}
|
|
13559
13752
|
),
|
|
@@ -13565,7 +13758,7 @@ var TablePagination2 = React8.forwardRef(
|
|
|
13565
13758
|
className: "size-8",
|
|
13566
13759
|
onClick: () => onPageChange(pageIndex - 1),
|
|
13567
13760
|
disabled: !canPrev,
|
|
13568
|
-
"aria-label": "
|
|
13761
|
+
"aria-label": t("DATA_TABLE_PAGINATION.PREVIOUS_PAGE"),
|
|
13569
13762
|
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "size-4" })
|
|
13570
13763
|
}
|
|
13571
13764
|
),
|
|
@@ -13577,7 +13770,7 @@ var TablePagination2 = React8.forwardRef(
|
|
|
13577
13770
|
className: "size-8",
|
|
13578
13771
|
onClick: () => onPageChange(pageIndex + 1),
|
|
13579
13772
|
disabled: !canNext,
|
|
13580
|
-
"aria-label": "
|
|
13773
|
+
"aria-label": t("DATA_TABLE_PAGINATION.NEXT_PAGE"),
|
|
13581
13774
|
children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-4" })
|
|
13582
13775
|
}
|
|
13583
13776
|
),
|
|
@@ -13589,7 +13782,7 @@ var TablePagination2 = React8.forwardRef(
|
|
|
13589
13782
|
className: "hidden size-8 lg:flex",
|
|
13590
13783
|
onClick: () => onPageChange(pageCount - 1),
|
|
13591
13784
|
disabled: !canNext,
|
|
13592
|
-
"aria-label": "
|
|
13785
|
+
"aria-label": t("DATA_TABLE_PAGINATION.LAST_PAGE"),
|
|
13593
13786
|
children: /* @__PURE__ */ jsx(ChevronsRight, { className: "size-4" })
|
|
13594
13787
|
}
|
|
13595
13788
|
)
|
|
@@ -13603,5 +13796,5 @@ var TablePagination2 = React8.forwardRef(
|
|
|
13603
13796
|
TablePagination2.displayName = "TablePagination";
|
|
13604
13797
|
|
|
13605
13798
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppLoadingSpinner, AppSwitcher, ArchiveProject, AspectRatio, AuthLayout, AuthResolver, Avatar, AvatarFallback, AvatarImage, BackToConsoleNavigator, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CallbackPage, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationModal, ConsoleHeader, ConsoleLayout, ConsolePage, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyToClipboardButton, CopyableSnippet, DEFAULT_KANBAN_COLUMNS, DashboardHeader, DashboardLayout, DashboardOverview, DashboardRoute, DashboardSectionCard, DataTable, DataTableHeaderCell, DateRangePicker, DesktopMenuItem, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditProject, EditProjectDialog, EditProjectForm, EnvironmentCard, EnvironmentList, ErrorBoundary, ErrorDisplay, ErrorDisplayWithCard, FileInput, FileUploader, FileUploaderContent, FileUploaderItem, FilterControls, FilterToolBarMobileView, FilterToolbar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, ImpersonationChecker, ImpersonationSynchronizer, ImpersonationTerminator, ImportFileModalContent, InfiniteScroll, InfiniteScroller, InfoTooltip, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, KanbanBoard, KanbanBoardColumn, KanbanBoardContainer, KanbanTaskCard, Label, LanguageSelector, LoadingButton, LoginPage, Logo, MaskedText, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileMenuItem, MultiSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Notification, OidcLayout, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverContent, PopoverTrigger, ProfilePage, Progress, ProjectActions, ProjectCardLoadingSkeleton, ProjectDetail, ProjectList2 as ProjectList, ProjectListRowLoadingSkeleton, ProjectOverview, ProjectRepoList, ProtectedGuard, PublicGuard, PublicLayout, RadioGroup4 as RadioGroup, RadioGroupItem, RenderAlternatively, RenderConditionally, ResizableHandle, ResizablePanel, ResizablePanelGroup, RightSidePanel, RightSidePanelBody, RightSidePanelClose, RightSidePanelDescription, RightSidePanelFooter, RightSidePanelHeader, RightSidePanelProvider, RightSidePanelTitle, RightSidePanelTrigger, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectedEnvironment, SelectedProject, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarCollapsedTooltip, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuDesktop, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarMobileView, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableLoadingSkeleton, TablePagination2 as TablePagination, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeSwitcher, Timeline, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserDropdownMenu, WizardHorizontalTrackBar, WizardStepContent, WizardStepIndicator, WizardStepViewport, WizardStepperProvider, WizardVerticalTrackBar, badgeVariants, buttonVariants, editProjectFormDefaultValues, editProjectFormSchema, filteredAppSwitcherData, hasDraggableData, kanbanKeyboardCoordinateGetter, navigationMenuTriggerStyle, paginationQueryParsers, sidebarCollapsedTooltipClass, sortQueryParsers, spinnerVariants, toggleVariants, useFileUpload, useFormField, useNotificationSocket, useOidcContext, usePaginationQueryParams, useRightSidePanel, useSortQueryParams, useWizardStepper };
|
|
13606
|
-
//# sourceMappingURL=chunk-
|
|
13607
|
-
//# sourceMappingURL=chunk-
|
|
13799
|
+
//# sourceMappingURL=chunk-F2IEUFPT.js.map
|
|
13800
|
+
//# sourceMappingURL=chunk-F2IEUFPT.js.map
|