@sistent/sistent 0.15.1 → 0.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -5,6 +5,8 @@ import React$1, { MutableRefObject, FC, SVGProps, CSSProperties, ReactNode } fro
5
5
  export { outlinedInputClasses } from '@mui/material/OutlinedInput';
6
6
  export { tooltipClasses } from '@mui/material/Tooltip';
7
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
8
+ import * as _emotion_styled from '@emotion/styled';
9
+ import * as _mui_system from '@mui/system';
8
10
  import { Store as Store$1, Dispatch } from 'redux';
9
11
  import { TypographyOptions } from '@mui/material/styles/createTypography';
10
12
  import { EmotionCache } from '@emotion/react';
@@ -876,6 +878,51 @@ declare const RenderMarkdown: React.FC<RenderMarkdownProps>;
876
878
  declare const RenderMarkdownTooltip: React.FC<RenderMarkdownProps>;
877
879
  declare const BasicMarkdown: React.FC<RenderMarkdownProps>;
878
880
 
881
+ interface ModalProps extends DialogProps {
882
+ closeModal: () => void;
883
+ title: string;
884
+ headerIcon?: React$1.ReactNode;
885
+ reactNode?: React$1.ReactNode;
886
+ isFullScreenModeAllowed?: boolean;
887
+ }
888
+ interface ModalFooterProps {
889
+ children: React$1.ReactNode;
890
+ variant?: 'filled' | 'transparent';
891
+ helpText?: string;
892
+ hasHelpText?: boolean;
893
+ }
894
+ type openModalCallback = (props: {
895
+ title: string;
896
+ reactNode?: React$1.ReactNode;
897
+ onClose?: () => void;
898
+ }) => void;
899
+ interface UseModalReturnI extends ModalProps {
900
+ openModal: openModalCallback;
901
+ isOpen: boolean;
902
+ }
903
+ declare const CloseBtn: _emotion_styled.StyledComponent<Omit<IconButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement> & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
904
+ declare const ModalStyledHeader: _emotion_styled.StyledComponent<_mui_system.MUIStyledCommonProps<_mui_material.Theme>, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
905
+ declare const useModal: ({ headerIcon }: {
906
+ headerIcon: React$1.ReactNode;
907
+ }) => UseModalReturnI;
908
+ declare const ModalBody: _emotion_styled.StyledComponent<Omit<_mui_material.PaperProps, "ref"> & React$1.RefAttributes<HTMLDivElement> & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
909
+ declare const Modal: React$1.FC<ModalProps>;
910
+ declare const ModalFooter: React$1.FC<ModalFooterProps>;
911
+ interface ModalButtonPrimaryProps extends ButtonProps$1 {
912
+ isOpen?: boolean;
913
+ }
914
+ declare const ModalButtonPrimary: _emotion_styled.StyledComponent<ButtonProps & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & ModalButtonPrimaryProps, {}, {}>;
915
+ declare const ModalButtonSecondary: _emotion_styled.StyledComponent<ButtonProps & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
916
+ declare const ModalButtonTertiary: _emotion_styled.StyledComponent<ButtonProps & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
917
+ declare const ModalButtonDanger: _emotion_styled.StyledComponent<ButtonProps & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
918
+ interface PrimaryActionButtonsProps {
919
+ primaryText: string;
920
+ secondaryText: string;
921
+ primaryButtonProps?: React$1.ComponentProps<typeof ModalButtonPrimary>;
922
+ secondaryButtonProps?: React$1.ComponentProps<typeof ModalButtonSecondary>;
923
+ }
924
+ declare const PrimaryActionButtons: React$1.FC<PrimaryActionButtonsProps>;
925
+
879
926
  interface ICEServer {
880
927
  urls: string;
881
928
  username?: string;
@@ -2660,4 +2707,4 @@ declare const FormattedTime: ({ date }: {
2660
2707
  date: string;
2661
2708
  }) => react_jsx_runtime.JSX.Element;
2662
2709
 
2663
- export { ALABASTER_WHITE, ALICE_BLUE, ANAKIWA, Accordion, AccordionActions, AccordionDetails, AccordionSummary, AddIconCircleBordered as AddCircleIcon, AddIcon, Alert, AlertTitle, AppBar, ApplicationIcon, ArrowCompressIcon$1 as ArrowCompressIcon, ArrowCompressIcon as ArrowExpandIcon, Autocomplete, Avatar, AvatarGroup, BLACK, Backdrop, Badge, BasicMarkdown, BellIcon, Box, Breadcrumbs, BusIcon, Button, ButtonGroup, CARIBBEAN_GREEN, CASPER, CHARCOAL, CHINESE_SILVER, CONNECTED, CULTURED, CalenderIcon, Card, CardActions, CardContent, CardHeader, CardMedia, CaretDownIcon, CatalogIcon, ChainIcon, ChallengesIcon, CheckCircleIcon, Checkbox, ChevronLeft, Chip, CircleIcon, CircularProgress, ClickAwayListener, CloneIcon, CloseIcon, CloudSavedIcon, Collapse, CollapsAllIcon as CollapseAllIcon, ColumnIcon, CommunityClassIcon, ComponentIcon, ConfigurationIcon, Container, ContentFilterIcon, CopyIcon, CopyLinkIcon, CreateNewIcon, CredentialIcon, CrossCircleIcon, CssBaseline, CustomTooltip, DARK_BLUE_GRAY, DARK_PRIMARY_COLOR, DARK_SHADE_GRAY, DARK_SLATE_GRAY, DARK_TEAL, DATA_VALIDATOR_COMMANDS, DATA_VALIDATOR_EVENTS, DELETED, DISCONNECTED, DISCOVERED, DashboardIcon, type DataType, DatabaseIcon, DeferEvents, DeleteIcon, DeploymentsIcon, DesignIcon, DesignerBottomRightIcon, DetailsIcon as DetailIcon, DetailsIcon, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, DocumentIcon, DoneAllIcon, DoneIcon, DownloadIcon$1 as DownloadIcon, DragIcon, Drawer, DropDownIcon, EERIE_BLACK, EditIcon, EmptyStyleIcon, EnvironmentIcon, ErrorIcon, EventBus, type EventBusEvent, type EventType, ExpandAllIcon, DownloadIcon as ExportIcon, ExternalLinkIcon, Fab, FacebookIcon, Fade, FavoriteIcon, FeedbackIcon, FileIcon, FilterIcon, FormControl, FormControlLabel, FormGroup, FormLabel, FormattedTime, FullScreenIcon, FullScreenExitIcon as FullScreenIconExit, GRAY, GRAY97, GREEN, GetStartedIcon, GithubIcon, GoogleIcon, Grid, Grid2, GridViewIcon, Grow, HelpOutlinedIcon, HelperTextPopover, Hidden, IGNORED, IconButton, IdeaIcon, InfoCircleIcon, InfoIcon, InfoOutlinedIcon as InfoOutlined, InfoTooltip, Input, InputAdornment, InputBase, InputLabel, InsertChartIcon, InviteUserIcon, KEPPEL, KanvasIcon, KeppelApplicationIcon, KeppelRectangleIcon, KeppelTallRoundedRectangleIcon, KubernetesIcon, LIGHT_GRAY, LIGHT_TEAL, LIMED_SPRUCE, LeaderboardIcon as LeaderBoardIcon, LearningIcon, LeftAngledArrowIcon, LeftArrowIcon, LinearProgress, Link, LinkedinIcon, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListItemText, ListSubheader, LockIcon, LogoutIcon, MAINTAINENCE, MIDNIGHT_BLACK, MendeleyIcon, Menu, MenuIcon, MenuItem, MenuList, MesheryFilterIcon, MesheryOperator, MoveFileIcon, NOT_FOUND, NativeSelect, NoSsr, ONYX_BLACK, OfficialClassIcon, OpenFileIcon, OpenIcon, OpenInNewIcon, OrgIcon, OutlinedApplicationIcon, OutlinedCircleIcon, OutlinedCloudSavingIcon, OutlinedDataObjectIcon, OutlinedDeployIcon, OutlinedDoubleChevronIcon, OutlinedHierarchicalIcon, OutlinedInput, OutlinedMeshIcon, OutlinedPatternIcon, OutlinedPatternSwitchIcon, OutlinedPodIcon, OutlinedRectangleIcon, OutlinedRedoIcon, OutlinedResetIcon, OutlinedRingIcon, OutlinedScreenshotIcon, OutlinedSettingsIcon, OutlinedStarIcon, OutlinedTallRoundedRectangleIcon, OutlinedUndeployIcon, OutlinedUndoIcon, OutlinedValidateIcon, OutlinedVisibilityOffIcon, OutlinedVisibilityOnIcon, OutlinedVisualizerSwitcherIcon, PATTERNS_BLUE, PRIMARY_COLOR, Pagination, PanToolIcon, Paper, PersistedStateProvider, PersonIcon, PollIcon, Popover, Popper, type PrimitivePalette, PublicIcon, PublishIcon, QuestionIcon, REDUX_COMMANDS, REDUX_EVENTS, REEE, REGISTERED, type REXUX_ACTOR_EVENTS, RTK_EVENTS, Radio, RadioGroup, ReadIcon, RectangleIcon, type RehydrateStateAction, RemoveDoneIcon, RemoveIcon, RenderMarkdown, type RenderMarkdownProps, RenderMarkdownTooltip, RightArrowIcon, RoundedRectangleShapeIcon, RoundTriangleShapeIcon as RoundedTriangleShapeIcon, SAFFRON, SILVER_GRAY, SLATE_BLUE, SMPIcon, SaveAsIcon, SearchIcon, Select, ShareIcon, ShareLineIcon, SistentDefaultPrimitivePaletteDark, SistentDefaultPrimitivePaletteLight, SistentThemeProvider, SistentThemeProviderWithoutBaseLine, Skeleton, Slide, Slider, Snackbar, SpeedDial, SpeedDialAction, Stack, Step, StepButton, StepConnector, StepContent, StepIcon, StepLabel, Stepper, SuccessIcon, SvgIcon, Switch, TEAL_BLUE, TRANSPARENT_WHITE, Tab, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, TableSortLabel, TableViewIcon, Tabs, TachographDigitalIcon, TachometerIcon, TallRoundedRectangleIcon, TeamsIcon, TerminalIcon, TextField, ToggleButton, ToggleButtonGroup, Toolbar, ToolkitIcon, Tooltip, type TooltipProps, TouchAppIcon, TriangleIcon, TrophyIcon as TropyIcon, TwitterIcon, Typography, VerificationClassIcon, ViewsIcon as ViewIcon, WHITE, WHITESMOKE, WarningIcon, WorkspaceIcon, XSTATE_DEBUG_EVENT, YELLOW_SEA, Zoom, accentGrey, actionIcon, anakiwa, black, blue, buttonDelete, buttonDisabled, carribean, casper, charcoal, colors, common, componentIcon, connected, createAndEditEnvironmentSchema, createAndEditEnvironmentUiSchema, createAndEditWorkspace as createAndEditWorkspaceSchema, createAndEditWorkspaceUiSchema, cultured, darkModePalette, darkSlateGray, darkTeal, dataValidatorCommands, dataValidatorEvents, dataValidatorMachine, deadLetter, eerieBlack, forwardToActors, fromWorkerfiedActor, getCollaborationConfig, getFormatDate, getFullFormattedTime, getRelativeTime, getWebSocketProtocol, grafanaCredentialUiSchema as grafanaCredentialSUiSchema, grafanaCredentialSchema, gray, green, helmConnectionSchema, helmConnectionUiSchema, helpAndSupportModalSchema, helpAndSupportModalUiSchema, importDesignSchema, importDesignUiSchema, importFilterSchema, importFilterUiSchema, importModelSchema, importModelUiSchema, initReduxPersist, jungleGreen, keppel, kubernetesCredentialSchema, kubernetesCredentialUiSchema, lightModePalette, notificationColors, patternsBlue, primaryColor, prometheusCredentialSchema, prometheusCredentialUiSchema, publishCatalogItemSchema, publishCatalogItemUiSchema, red, redDelete, reduxActor, reduxCommands, reduxEvents, reply, rtkQueryActor, rtkQueryActorCommands, rtkQueryActorEvents, saffron, selectIsValidating, selectValidationResults, sendToActor, sendToActors, slateGray, socialIcons, subscribeToRoom, tabMenu, tableBackgroundHover, typography, unSubscribeRoom, useRoomActivity, white, workerfyActor, yellow };
2710
+ export { ALABASTER_WHITE, ALICE_BLUE, ANAKIWA, Accordion, AccordionActions, AccordionDetails, AccordionSummary, AddIconCircleBordered as AddCircleIcon, AddIcon, Alert, AlertTitle, AppBar, ApplicationIcon, ArrowCompressIcon$1 as ArrowCompressIcon, ArrowCompressIcon as ArrowExpandIcon, Autocomplete, Avatar, AvatarGroup, BLACK, Backdrop, Badge, BasicMarkdown, BellIcon, Box, Breadcrumbs, BusIcon, Button, ButtonGroup, CARIBBEAN_GREEN, CASPER, CHARCOAL, CHINESE_SILVER, CONNECTED, CULTURED, CalenderIcon, Card, CardActions, CardContent, CardHeader, CardMedia, CaretDownIcon, CatalogIcon, ChainIcon, ChallengesIcon, CheckCircleIcon, Checkbox, ChevronLeft, Chip, CircleIcon, CircularProgress, ClickAwayListener, CloneIcon, CloseBtn, CloseIcon, CloudSavedIcon, Collapse, CollapsAllIcon as CollapseAllIcon, ColumnIcon, CommunityClassIcon, ComponentIcon, ConfigurationIcon, Container, ContentFilterIcon, CopyIcon, CopyLinkIcon, CreateNewIcon, CredentialIcon, CrossCircleIcon, CssBaseline, CustomTooltip, DARK_BLUE_GRAY, DARK_PRIMARY_COLOR, DARK_SHADE_GRAY, DARK_SLATE_GRAY, DARK_TEAL, DATA_VALIDATOR_COMMANDS, DATA_VALIDATOR_EVENTS, DELETED, DISCONNECTED, DISCOVERED, DashboardIcon, type DataType, DatabaseIcon, DeferEvents, DeleteIcon, DeploymentsIcon, DesignIcon, DesignerBottomRightIcon, DetailsIcon as DetailIcon, DetailsIcon, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, DocumentIcon, DoneAllIcon, DoneIcon, DownloadIcon$1 as DownloadIcon, DragIcon, Drawer, DropDownIcon, EERIE_BLACK, EditIcon, EmptyStyleIcon, EnvironmentIcon, ErrorIcon, EventBus, type EventBusEvent, type EventType, ExpandAllIcon, DownloadIcon as ExportIcon, ExternalLinkIcon, Fab, FacebookIcon, Fade, FavoriteIcon, FeedbackIcon, FileIcon, FilterIcon, FormControl, FormControlLabel, FormGroup, FormLabel, FormattedTime, FullScreenIcon, FullScreenExitIcon as FullScreenIconExit, GRAY, GRAY97, GREEN, GetStartedIcon, GithubIcon, GoogleIcon, Grid, Grid2, GridViewIcon, Grow, HelpOutlinedIcon, HelperTextPopover, Hidden, IGNORED, IconButton, IdeaIcon, InfoCircleIcon, InfoIcon, InfoOutlinedIcon as InfoOutlined, InfoTooltip, Input, InputAdornment, InputBase, InputLabel, InsertChartIcon, InviteUserIcon, KEPPEL, KanvasIcon, KeppelApplicationIcon, KeppelRectangleIcon, KeppelTallRoundedRectangleIcon, KubernetesIcon, LIGHT_GRAY, LIGHT_TEAL, LIMED_SPRUCE, LeaderboardIcon as LeaderBoardIcon, LearningIcon, LeftAngledArrowIcon, LeftArrowIcon, LinearProgress, Link, LinkedinIcon, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListItemText, ListSubheader, LockIcon, LogoutIcon, MAINTAINENCE, MIDNIGHT_BLACK, MendeleyIcon, Menu, MenuIcon, MenuItem, MenuList, MesheryFilterIcon, MesheryOperator, Modal, ModalBody, ModalButtonDanger, ModalButtonPrimary, ModalButtonSecondary, ModalButtonTertiary, ModalFooter, ModalStyledHeader, MoveFileIcon, NOT_FOUND, NativeSelect, NoSsr, ONYX_BLACK, OfficialClassIcon, OpenFileIcon, OpenIcon, OpenInNewIcon, OrgIcon, OutlinedApplicationIcon, OutlinedCircleIcon, OutlinedCloudSavingIcon, OutlinedDataObjectIcon, OutlinedDeployIcon, OutlinedDoubleChevronIcon, OutlinedHierarchicalIcon, OutlinedInput, OutlinedMeshIcon, OutlinedPatternIcon, OutlinedPatternSwitchIcon, OutlinedPodIcon, OutlinedRectangleIcon, OutlinedRedoIcon, OutlinedResetIcon, OutlinedRingIcon, OutlinedScreenshotIcon, OutlinedSettingsIcon, OutlinedStarIcon, OutlinedTallRoundedRectangleIcon, OutlinedUndeployIcon, OutlinedUndoIcon, OutlinedValidateIcon, OutlinedVisibilityOffIcon, OutlinedVisibilityOnIcon, OutlinedVisualizerSwitcherIcon, PATTERNS_BLUE, PRIMARY_COLOR, Pagination, PanToolIcon, Paper, PersistedStateProvider, PersonIcon, PollIcon, Popover, Popper, PrimaryActionButtons, type PrimitivePalette, PublicIcon, PublishIcon, QuestionIcon, REDUX_COMMANDS, REDUX_EVENTS, REEE, REGISTERED, type REXUX_ACTOR_EVENTS, RTK_EVENTS, Radio, RadioGroup, ReadIcon, RectangleIcon, type RehydrateStateAction, RemoveDoneIcon, RemoveIcon, RenderMarkdown, type RenderMarkdownProps, RenderMarkdownTooltip, RightArrowIcon, RoundedRectangleShapeIcon, RoundTriangleShapeIcon as RoundedTriangleShapeIcon, SAFFRON, SILVER_GRAY, SLATE_BLUE, SMPIcon, SaveAsIcon, SearchIcon, Select, ShareIcon, ShareLineIcon, SistentDefaultPrimitivePaletteDark, SistentDefaultPrimitivePaletteLight, SistentThemeProvider, SistentThemeProviderWithoutBaseLine, Skeleton, Slide, Slider, Snackbar, SpeedDial, SpeedDialAction, Stack, Step, StepButton, StepConnector, StepContent, StepIcon, StepLabel, Stepper, SuccessIcon, SvgIcon, Switch, TEAL_BLUE, TRANSPARENT_WHITE, Tab, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, TableSortLabel, TableViewIcon, Tabs, TachographDigitalIcon, TachometerIcon, TallRoundedRectangleIcon, TeamsIcon, TerminalIcon, TextField, ToggleButton, ToggleButtonGroup, Toolbar, ToolkitIcon, Tooltip, type TooltipProps, TouchAppIcon, TriangleIcon, TrophyIcon as TropyIcon, TwitterIcon, Typography, VerificationClassIcon, ViewsIcon as ViewIcon, WHITE, WHITESMOKE, WarningIcon, WorkspaceIcon, XSTATE_DEBUG_EVENT, YELLOW_SEA, Zoom, accentGrey, actionIcon, anakiwa, black, blue, buttonDelete, buttonDisabled, carribean, casper, charcoal, colors, common, componentIcon, connected, createAndEditEnvironmentSchema, createAndEditEnvironmentUiSchema, createAndEditWorkspace as createAndEditWorkspaceSchema, createAndEditWorkspaceUiSchema, cultured, darkModePalette, darkSlateGray, darkTeal, dataValidatorCommands, dataValidatorEvents, dataValidatorMachine, deadLetter, eerieBlack, forwardToActors, fromWorkerfiedActor, getCollaborationConfig, getFormatDate, getFullFormattedTime, getRelativeTime, getWebSocketProtocol, grafanaCredentialUiSchema as grafanaCredentialSUiSchema, grafanaCredentialSchema, gray, green, helmConnectionSchema, helmConnectionUiSchema, helpAndSupportModalSchema, helpAndSupportModalUiSchema, importDesignSchema, importDesignUiSchema, importFilterSchema, importFilterUiSchema, importModelSchema, importModelUiSchema, initReduxPersist, jungleGreen, keppel, kubernetesCredentialSchema, kubernetesCredentialUiSchema, lightModePalette, notificationColors, patternsBlue, primaryColor, prometheusCredentialSchema, prometheusCredentialUiSchema, publishCatalogItemSchema, publishCatalogItemUiSchema, red, redDelete, reduxActor, reduxCommands, reduxEvents, reply, rtkQueryActor, rtkQueryActorCommands, rtkQueryActorEvents, saffron, selectIsValidating, selectValidationResults, sendToActor, sendToActors, slateGray, socialIcons, subscribeToRoom, tabMenu, tableBackgroundHover, typography, unSubscribeRoom, useModal, useRoomActivity, white, workerfyActor, yellow };
package/dist/index.d.ts CHANGED
@@ -5,6 +5,8 @@ import React$1, { MutableRefObject, FC, SVGProps, CSSProperties, ReactNode } fro
5
5
  export { outlinedInputClasses } from '@mui/material/OutlinedInput';
6
6
  export { tooltipClasses } from '@mui/material/Tooltip';
7
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
8
+ import * as _emotion_styled from '@emotion/styled';
9
+ import * as _mui_system from '@mui/system';
8
10
  import { Store as Store$1, Dispatch } from 'redux';
9
11
  import { TypographyOptions } from '@mui/material/styles/createTypography';
10
12
  import { EmotionCache } from '@emotion/react';
@@ -876,6 +878,51 @@ declare const RenderMarkdown: React.FC<RenderMarkdownProps>;
876
878
  declare const RenderMarkdownTooltip: React.FC<RenderMarkdownProps>;
877
879
  declare const BasicMarkdown: React.FC<RenderMarkdownProps>;
878
880
 
881
+ interface ModalProps extends DialogProps {
882
+ closeModal: () => void;
883
+ title: string;
884
+ headerIcon?: React$1.ReactNode;
885
+ reactNode?: React$1.ReactNode;
886
+ isFullScreenModeAllowed?: boolean;
887
+ }
888
+ interface ModalFooterProps {
889
+ children: React$1.ReactNode;
890
+ variant?: 'filled' | 'transparent';
891
+ helpText?: string;
892
+ hasHelpText?: boolean;
893
+ }
894
+ type openModalCallback = (props: {
895
+ title: string;
896
+ reactNode?: React$1.ReactNode;
897
+ onClose?: () => void;
898
+ }) => void;
899
+ interface UseModalReturnI extends ModalProps {
900
+ openModal: openModalCallback;
901
+ isOpen: boolean;
902
+ }
903
+ declare const CloseBtn: _emotion_styled.StyledComponent<Omit<IconButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement> & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
904
+ declare const ModalStyledHeader: _emotion_styled.StyledComponent<_mui_system.MUIStyledCommonProps<_mui_material.Theme>, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
905
+ declare const useModal: ({ headerIcon }: {
906
+ headerIcon: React$1.ReactNode;
907
+ }) => UseModalReturnI;
908
+ declare const ModalBody: _emotion_styled.StyledComponent<Omit<_mui_material.PaperProps, "ref"> & React$1.RefAttributes<HTMLDivElement> & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
909
+ declare const Modal: React$1.FC<ModalProps>;
910
+ declare const ModalFooter: React$1.FC<ModalFooterProps>;
911
+ interface ModalButtonPrimaryProps extends ButtonProps$1 {
912
+ isOpen?: boolean;
913
+ }
914
+ declare const ModalButtonPrimary: _emotion_styled.StyledComponent<ButtonProps & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & ModalButtonPrimaryProps, {}, {}>;
915
+ declare const ModalButtonSecondary: _emotion_styled.StyledComponent<ButtonProps & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
916
+ declare const ModalButtonTertiary: _emotion_styled.StyledComponent<ButtonProps & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
917
+ declare const ModalButtonDanger: _emotion_styled.StyledComponent<ButtonProps & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
918
+ interface PrimaryActionButtonsProps {
919
+ primaryText: string;
920
+ secondaryText: string;
921
+ primaryButtonProps?: React$1.ComponentProps<typeof ModalButtonPrimary>;
922
+ secondaryButtonProps?: React$1.ComponentProps<typeof ModalButtonSecondary>;
923
+ }
924
+ declare const PrimaryActionButtons: React$1.FC<PrimaryActionButtonsProps>;
925
+
879
926
  interface ICEServer {
880
927
  urls: string;
881
928
  username?: string;
@@ -2660,4 +2707,4 @@ declare const FormattedTime: ({ date }: {
2660
2707
  date: string;
2661
2708
  }) => react_jsx_runtime.JSX.Element;
2662
2709
 
2663
- export { ALABASTER_WHITE, ALICE_BLUE, ANAKIWA, Accordion, AccordionActions, AccordionDetails, AccordionSummary, AddIconCircleBordered as AddCircleIcon, AddIcon, Alert, AlertTitle, AppBar, ApplicationIcon, ArrowCompressIcon$1 as ArrowCompressIcon, ArrowCompressIcon as ArrowExpandIcon, Autocomplete, Avatar, AvatarGroup, BLACK, Backdrop, Badge, BasicMarkdown, BellIcon, Box, Breadcrumbs, BusIcon, Button, ButtonGroup, CARIBBEAN_GREEN, CASPER, CHARCOAL, CHINESE_SILVER, CONNECTED, CULTURED, CalenderIcon, Card, CardActions, CardContent, CardHeader, CardMedia, CaretDownIcon, CatalogIcon, ChainIcon, ChallengesIcon, CheckCircleIcon, Checkbox, ChevronLeft, Chip, CircleIcon, CircularProgress, ClickAwayListener, CloneIcon, CloseIcon, CloudSavedIcon, Collapse, CollapsAllIcon as CollapseAllIcon, ColumnIcon, CommunityClassIcon, ComponentIcon, ConfigurationIcon, Container, ContentFilterIcon, CopyIcon, CopyLinkIcon, CreateNewIcon, CredentialIcon, CrossCircleIcon, CssBaseline, CustomTooltip, DARK_BLUE_GRAY, DARK_PRIMARY_COLOR, DARK_SHADE_GRAY, DARK_SLATE_GRAY, DARK_TEAL, DATA_VALIDATOR_COMMANDS, DATA_VALIDATOR_EVENTS, DELETED, DISCONNECTED, DISCOVERED, DashboardIcon, type DataType, DatabaseIcon, DeferEvents, DeleteIcon, DeploymentsIcon, DesignIcon, DesignerBottomRightIcon, DetailsIcon as DetailIcon, DetailsIcon, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, DocumentIcon, DoneAllIcon, DoneIcon, DownloadIcon$1 as DownloadIcon, DragIcon, Drawer, DropDownIcon, EERIE_BLACK, EditIcon, EmptyStyleIcon, EnvironmentIcon, ErrorIcon, EventBus, type EventBusEvent, type EventType, ExpandAllIcon, DownloadIcon as ExportIcon, ExternalLinkIcon, Fab, FacebookIcon, Fade, FavoriteIcon, FeedbackIcon, FileIcon, FilterIcon, FormControl, FormControlLabel, FormGroup, FormLabel, FormattedTime, FullScreenIcon, FullScreenExitIcon as FullScreenIconExit, GRAY, GRAY97, GREEN, GetStartedIcon, GithubIcon, GoogleIcon, Grid, Grid2, GridViewIcon, Grow, HelpOutlinedIcon, HelperTextPopover, Hidden, IGNORED, IconButton, IdeaIcon, InfoCircleIcon, InfoIcon, InfoOutlinedIcon as InfoOutlined, InfoTooltip, Input, InputAdornment, InputBase, InputLabel, InsertChartIcon, InviteUserIcon, KEPPEL, KanvasIcon, KeppelApplicationIcon, KeppelRectangleIcon, KeppelTallRoundedRectangleIcon, KubernetesIcon, LIGHT_GRAY, LIGHT_TEAL, LIMED_SPRUCE, LeaderboardIcon as LeaderBoardIcon, LearningIcon, LeftAngledArrowIcon, LeftArrowIcon, LinearProgress, Link, LinkedinIcon, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListItemText, ListSubheader, LockIcon, LogoutIcon, MAINTAINENCE, MIDNIGHT_BLACK, MendeleyIcon, Menu, MenuIcon, MenuItem, MenuList, MesheryFilterIcon, MesheryOperator, MoveFileIcon, NOT_FOUND, NativeSelect, NoSsr, ONYX_BLACK, OfficialClassIcon, OpenFileIcon, OpenIcon, OpenInNewIcon, OrgIcon, OutlinedApplicationIcon, OutlinedCircleIcon, OutlinedCloudSavingIcon, OutlinedDataObjectIcon, OutlinedDeployIcon, OutlinedDoubleChevronIcon, OutlinedHierarchicalIcon, OutlinedInput, OutlinedMeshIcon, OutlinedPatternIcon, OutlinedPatternSwitchIcon, OutlinedPodIcon, OutlinedRectangleIcon, OutlinedRedoIcon, OutlinedResetIcon, OutlinedRingIcon, OutlinedScreenshotIcon, OutlinedSettingsIcon, OutlinedStarIcon, OutlinedTallRoundedRectangleIcon, OutlinedUndeployIcon, OutlinedUndoIcon, OutlinedValidateIcon, OutlinedVisibilityOffIcon, OutlinedVisibilityOnIcon, OutlinedVisualizerSwitcherIcon, PATTERNS_BLUE, PRIMARY_COLOR, Pagination, PanToolIcon, Paper, PersistedStateProvider, PersonIcon, PollIcon, Popover, Popper, type PrimitivePalette, PublicIcon, PublishIcon, QuestionIcon, REDUX_COMMANDS, REDUX_EVENTS, REEE, REGISTERED, type REXUX_ACTOR_EVENTS, RTK_EVENTS, Radio, RadioGroup, ReadIcon, RectangleIcon, type RehydrateStateAction, RemoveDoneIcon, RemoveIcon, RenderMarkdown, type RenderMarkdownProps, RenderMarkdownTooltip, RightArrowIcon, RoundedRectangleShapeIcon, RoundTriangleShapeIcon as RoundedTriangleShapeIcon, SAFFRON, SILVER_GRAY, SLATE_BLUE, SMPIcon, SaveAsIcon, SearchIcon, Select, ShareIcon, ShareLineIcon, SistentDefaultPrimitivePaletteDark, SistentDefaultPrimitivePaletteLight, SistentThemeProvider, SistentThemeProviderWithoutBaseLine, Skeleton, Slide, Slider, Snackbar, SpeedDial, SpeedDialAction, Stack, Step, StepButton, StepConnector, StepContent, StepIcon, StepLabel, Stepper, SuccessIcon, SvgIcon, Switch, TEAL_BLUE, TRANSPARENT_WHITE, Tab, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, TableSortLabel, TableViewIcon, Tabs, TachographDigitalIcon, TachometerIcon, TallRoundedRectangleIcon, TeamsIcon, TerminalIcon, TextField, ToggleButton, ToggleButtonGroup, Toolbar, ToolkitIcon, Tooltip, type TooltipProps, TouchAppIcon, TriangleIcon, TrophyIcon as TropyIcon, TwitterIcon, Typography, VerificationClassIcon, ViewsIcon as ViewIcon, WHITE, WHITESMOKE, WarningIcon, WorkspaceIcon, XSTATE_DEBUG_EVENT, YELLOW_SEA, Zoom, accentGrey, actionIcon, anakiwa, black, blue, buttonDelete, buttonDisabled, carribean, casper, charcoal, colors, common, componentIcon, connected, createAndEditEnvironmentSchema, createAndEditEnvironmentUiSchema, createAndEditWorkspace as createAndEditWorkspaceSchema, createAndEditWorkspaceUiSchema, cultured, darkModePalette, darkSlateGray, darkTeal, dataValidatorCommands, dataValidatorEvents, dataValidatorMachine, deadLetter, eerieBlack, forwardToActors, fromWorkerfiedActor, getCollaborationConfig, getFormatDate, getFullFormattedTime, getRelativeTime, getWebSocketProtocol, grafanaCredentialUiSchema as grafanaCredentialSUiSchema, grafanaCredentialSchema, gray, green, helmConnectionSchema, helmConnectionUiSchema, helpAndSupportModalSchema, helpAndSupportModalUiSchema, importDesignSchema, importDesignUiSchema, importFilterSchema, importFilterUiSchema, importModelSchema, importModelUiSchema, initReduxPersist, jungleGreen, keppel, kubernetesCredentialSchema, kubernetesCredentialUiSchema, lightModePalette, notificationColors, patternsBlue, primaryColor, prometheusCredentialSchema, prometheusCredentialUiSchema, publishCatalogItemSchema, publishCatalogItemUiSchema, red, redDelete, reduxActor, reduxCommands, reduxEvents, reply, rtkQueryActor, rtkQueryActorCommands, rtkQueryActorEvents, saffron, selectIsValidating, selectValidationResults, sendToActor, sendToActors, slateGray, socialIcons, subscribeToRoom, tabMenu, tableBackgroundHover, typography, unSubscribeRoom, useRoomActivity, white, workerfyActor, yellow };
2710
+ export { ALABASTER_WHITE, ALICE_BLUE, ANAKIWA, Accordion, AccordionActions, AccordionDetails, AccordionSummary, AddIconCircleBordered as AddCircleIcon, AddIcon, Alert, AlertTitle, AppBar, ApplicationIcon, ArrowCompressIcon$1 as ArrowCompressIcon, ArrowCompressIcon as ArrowExpandIcon, Autocomplete, Avatar, AvatarGroup, BLACK, Backdrop, Badge, BasicMarkdown, BellIcon, Box, Breadcrumbs, BusIcon, Button, ButtonGroup, CARIBBEAN_GREEN, CASPER, CHARCOAL, CHINESE_SILVER, CONNECTED, CULTURED, CalenderIcon, Card, CardActions, CardContent, CardHeader, CardMedia, CaretDownIcon, CatalogIcon, ChainIcon, ChallengesIcon, CheckCircleIcon, Checkbox, ChevronLeft, Chip, CircleIcon, CircularProgress, ClickAwayListener, CloneIcon, CloseBtn, CloseIcon, CloudSavedIcon, Collapse, CollapsAllIcon as CollapseAllIcon, ColumnIcon, CommunityClassIcon, ComponentIcon, ConfigurationIcon, Container, ContentFilterIcon, CopyIcon, CopyLinkIcon, CreateNewIcon, CredentialIcon, CrossCircleIcon, CssBaseline, CustomTooltip, DARK_BLUE_GRAY, DARK_PRIMARY_COLOR, DARK_SHADE_GRAY, DARK_SLATE_GRAY, DARK_TEAL, DATA_VALIDATOR_COMMANDS, DATA_VALIDATOR_EVENTS, DELETED, DISCONNECTED, DISCOVERED, DashboardIcon, type DataType, DatabaseIcon, DeferEvents, DeleteIcon, DeploymentsIcon, DesignIcon, DesignerBottomRightIcon, DetailsIcon as DetailIcon, DetailsIcon, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, DocumentIcon, DoneAllIcon, DoneIcon, DownloadIcon$1 as DownloadIcon, DragIcon, Drawer, DropDownIcon, EERIE_BLACK, EditIcon, EmptyStyleIcon, EnvironmentIcon, ErrorIcon, EventBus, type EventBusEvent, type EventType, ExpandAllIcon, DownloadIcon as ExportIcon, ExternalLinkIcon, Fab, FacebookIcon, Fade, FavoriteIcon, FeedbackIcon, FileIcon, FilterIcon, FormControl, FormControlLabel, FormGroup, FormLabel, FormattedTime, FullScreenIcon, FullScreenExitIcon as FullScreenIconExit, GRAY, GRAY97, GREEN, GetStartedIcon, GithubIcon, GoogleIcon, Grid, Grid2, GridViewIcon, Grow, HelpOutlinedIcon, HelperTextPopover, Hidden, IGNORED, IconButton, IdeaIcon, InfoCircleIcon, InfoIcon, InfoOutlinedIcon as InfoOutlined, InfoTooltip, Input, InputAdornment, InputBase, InputLabel, InsertChartIcon, InviteUserIcon, KEPPEL, KanvasIcon, KeppelApplicationIcon, KeppelRectangleIcon, KeppelTallRoundedRectangleIcon, KubernetesIcon, LIGHT_GRAY, LIGHT_TEAL, LIMED_SPRUCE, LeaderboardIcon as LeaderBoardIcon, LearningIcon, LeftAngledArrowIcon, LeftArrowIcon, LinearProgress, Link, LinkedinIcon, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListItemText, ListSubheader, LockIcon, LogoutIcon, MAINTAINENCE, MIDNIGHT_BLACK, MendeleyIcon, Menu, MenuIcon, MenuItem, MenuList, MesheryFilterIcon, MesheryOperator, Modal, ModalBody, ModalButtonDanger, ModalButtonPrimary, ModalButtonSecondary, ModalButtonTertiary, ModalFooter, ModalStyledHeader, MoveFileIcon, NOT_FOUND, NativeSelect, NoSsr, ONYX_BLACK, OfficialClassIcon, OpenFileIcon, OpenIcon, OpenInNewIcon, OrgIcon, OutlinedApplicationIcon, OutlinedCircleIcon, OutlinedCloudSavingIcon, OutlinedDataObjectIcon, OutlinedDeployIcon, OutlinedDoubleChevronIcon, OutlinedHierarchicalIcon, OutlinedInput, OutlinedMeshIcon, OutlinedPatternIcon, OutlinedPatternSwitchIcon, OutlinedPodIcon, OutlinedRectangleIcon, OutlinedRedoIcon, OutlinedResetIcon, OutlinedRingIcon, OutlinedScreenshotIcon, OutlinedSettingsIcon, OutlinedStarIcon, OutlinedTallRoundedRectangleIcon, OutlinedUndeployIcon, OutlinedUndoIcon, OutlinedValidateIcon, OutlinedVisibilityOffIcon, OutlinedVisibilityOnIcon, OutlinedVisualizerSwitcherIcon, PATTERNS_BLUE, PRIMARY_COLOR, Pagination, PanToolIcon, Paper, PersistedStateProvider, PersonIcon, PollIcon, Popover, Popper, PrimaryActionButtons, type PrimitivePalette, PublicIcon, PublishIcon, QuestionIcon, REDUX_COMMANDS, REDUX_EVENTS, REEE, REGISTERED, type REXUX_ACTOR_EVENTS, RTK_EVENTS, Radio, RadioGroup, ReadIcon, RectangleIcon, type RehydrateStateAction, RemoveDoneIcon, RemoveIcon, RenderMarkdown, type RenderMarkdownProps, RenderMarkdownTooltip, RightArrowIcon, RoundedRectangleShapeIcon, RoundTriangleShapeIcon as RoundedTriangleShapeIcon, SAFFRON, SILVER_GRAY, SLATE_BLUE, SMPIcon, SaveAsIcon, SearchIcon, Select, ShareIcon, ShareLineIcon, SistentDefaultPrimitivePaletteDark, SistentDefaultPrimitivePaletteLight, SistentThemeProvider, SistentThemeProviderWithoutBaseLine, Skeleton, Slide, Slider, Snackbar, SpeedDial, SpeedDialAction, Stack, Step, StepButton, StepConnector, StepContent, StepIcon, StepLabel, Stepper, SuccessIcon, SvgIcon, Switch, TEAL_BLUE, TRANSPARENT_WHITE, Tab, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, TableSortLabel, TableViewIcon, Tabs, TachographDigitalIcon, TachometerIcon, TallRoundedRectangleIcon, TeamsIcon, TerminalIcon, TextField, ToggleButton, ToggleButtonGroup, Toolbar, ToolkitIcon, Tooltip, type TooltipProps, TouchAppIcon, TriangleIcon, TrophyIcon as TropyIcon, TwitterIcon, Typography, VerificationClassIcon, ViewsIcon as ViewIcon, WHITE, WHITESMOKE, WarningIcon, WorkspaceIcon, XSTATE_DEBUG_EVENT, YELLOW_SEA, Zoom, accentGrey, actionIcon, anakiwa, black, blue, buttonDelete, buttonDisabled, carribean, casper, charcoal, colors, common, componentIcon, connected, createAndEditEnvironmentSchema, createAndEditEnvironmentUiSchema, createAndEditWorkspace as createAndEditWorkspaceSchema, createAndEditWorkspaceUiSchema, cultured, darkModePalette, darkSlateGray, darkTeal, dataValidatorCommands, dataValidatorEvents, dataValidatorMachine, deadLetter, eerieBlack, forwardToActors, fromWorkerfiedActor, getCollaborationConfig, getFormatDate, getFullFormattedTime, getRelativeTime, getWebSocketProtocol, grafanaCredentialUiSchema as grafanaCredentialSUiSchema, grafanaCredentialSchema, gray, green, helmConnectionSchema, helmConnectionUiSchema, helpAndSupportModalSchema, helpAndSupportModalUiSchema, importDesignSchema, importDesignUiSchema, importFilterSchema, importFilterUiSchema, importModelSchema, importModelUiSchema, initReduxPersist, jungleGreen, keppel, kubernetesCredentialSchema, kubernetesCredentialUiSchema, lightModePalette, notificationColors, patternsBlue, primaryColor, prometheusCredentialSchema, prometheusCredentialUiSchema, publishCatalogItemSchema, publishCatalogItemUiSchema, red, redDelete, reduxActor, reduxCommands, reduxEvents, reply, rtkQueryActor, rtkQueryActorCommands, rtkQueryActorEvents, saffron, selectIsValidating, selectValidationResults, sendToActor, sendToActors, slateGray, socialIcons, subscribeToRoom, tabMenu, tableBackgroundHover, typography, unSubscribeRoom, useModal, useRoomActivity, white, workerfyActor, yellow };
package/dist/index.js CHANGED
@@ -56,7 +56,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var ue=se(b,O,D,F,q+"."+
56
56
  `)&&u.type==="html"&&(n[n.length-1]=n[n.length-1].replace(/(\r?\n|\r)$/," "),l=" ",s=t.createTracker(r),s.move(n.join(""))),n.push(s.move(t.handle(u,e,t,{...s.current(),before:l,after:f}))),l=n[n.length-1].slice(-1)}return o.pop(),n.join("")}var Z4e=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];sW.peek=J4e;var IS={canContainEols:["delete"],enter:{strikethrough:Q4e},exit:{strikethrough:X4e}},MS={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Z4e}],handlers:{delete:sW}};function Q4e(e){this.enter({type:"delete",children:[]},e)}function X4e(e){this.exit(e)}function sW(e,t,r,o){let a=wu(o),n=r.enter("strikethrough"),i=a.move("~~");return i+=r3(e,r,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),n(),i}function J4e(){return"~"}LS.peek=ege;function LS(e,t,r){let o=e.value||"",a="`",n=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(o);)a+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++n<r.unsafe.length;){let i=r.unsafe[n],l=t3(i),s;if(i.atBreak)for(;s=l.exec(o);){let u=s.index;o.charCodeAt(u)===10&&o.charCodeAt(u-1)===13&&u--,o=o.slice(0,u)+" "+o.slice(s.index+1)}}return a+o+a}function ege(){return"`"}function tge(e){return e.length}function fW(e,t){let r=t||{},o=(r.align||[]).concat(),a=r.stringLength||tge,n=[],i=[],l=[],s=[],u=0,f=-1;for(;++f<e.length;){let h=[],g=[],T=-1;for(e[f].length>u&&(u=e[f].length);++T<e[f].length;){let R=rge(e[f][T]);if(r.alignDelimiters!==!1){let w=a(R);g[T]=w,(s[T]===void 0||w>s[T])&&(s[T]=w)}h.push(R)}i[f]=h,l[f]=g}let d=-1;if(typeof o=="object"&&"length"in o)for(;++d<u;)n[d]=uW(o[d]);else{let h=uW(o);for(;++d<u;)n[d]=h}d=-1;let p=[],m=[];for(;++d<u;){let h=n[d],g="",T="";h===99?(g=":",T=":"):h===108?g=":":h===114&&(T=":");let R=r.alignDelimiters===!1?1:Math.max(1,s[d]-g.length-T.length),w=g+"-".repeat(R)+T;r.alignDelimiters!==!1&&(R=g.length+R+T.length,R>s[d]&&(s[d]=R),m[d]=R),p[d]=w}i.splice(1,0,p),l.splice(1,0,m),f=-1;let x=[];for(;++f<i.length;){let h=i[f],g=l[f];d=-1;let T=[];for(;++d<u;){let R=h[d]||"",w="",M="";if(r.alignDelimiters!==!1){let I=s[d]-(g[d]||0),C=n[d];C===114?w=" ".repeat(I):C===99?I%2?(w=" ".repeat(I/2+.5),M=" ".repeat(I/2-.5)):(w=" ".repeat(I/2),M=w):M=" ".repeat(I)}r.delimiterStart!==!1&&!d&&T.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&R==="")&&(r.delimiterStart!==!1||d)&&T.push(" "),r.alignDelimiters!==!1&&T.push(w),T.push(R),r.alignDelimiters!==!1&&T.push(M),r.padding!==!1&&T.push(" "),(r.delimiterEnd!==!1||d!==u-1)&&T.push("|")}x.push(r.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return x.join(`
57
57
  `)}function rge(e){return e==null?"":String(e)}function uW(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var FS={enter:{table:oge,tableData:dW,tableHeader:dW,tableRow:nge},exit:{codeText:ige,table:age,tableData:DS,tableHeader:DS,tableRow:DS}};function oge(e){let t=e._align;this.enter({type:"table",align:t.map(r=>r==="none"?null:r),children:[]},e),this.setData("inTable",!0)}function age(e){this.exit(e),this.setData("inTable")}function nge(e){this.enter({type:"tableRow",children:[]},e)}function DS(e){this.exit(e)}function dW(e){this.enter({type:"tableCell",children:[]},e)}function ige(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,lge));let r=this.stack[this.stack.length-1];r.value=t,this.exit(e)}function lge(e,t){return t==="|"?t:e}function NS(e){let t=e||{},r=t.tableCellPadding,o=t.tablePipeAlign,a=t.stringLength,n=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
58
58
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:i,tableRow:l,tableCell:s,inlineCode:p}};function i(m,x,h,g){return u(f(m,h,g),m.align)}function l(m,x,h,g){let T=d(m,h,g),R=u([T]);return R.slice(0,R.indexOf(`
59
- `))}function s(m,x,h,g){let T=h.enter("tableCell"),R=h.enter("phrasing"),w=r3(m,h,{...g,before:n,after:n});return R(),T(),w}function u(m,x){return fW(m,{align:x,alignDelimiters:o,padding:r,stringLength:a})}function f(m,x,h){let g=m.children,T=-1,R=[],w=x.enter("table");for(;++T<g.length;)R[T]=d(g[T],x,h);return w(),R}function d(m,x,h){let g=m.children,T=-1,R=[],w=x.enter("tableRow");for(;++T<g.length;)R[T]=s(g[T],m,x,h);return w(),R}function p(m,x,h){let g=LS(m,x,h);return h.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function pW(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function mW(e){let t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function cW(e,t,r,o){let a=mW(r),n=r.bulletCurrent||pW(r);t&&t.type==="list"&&t.ordered&&(n=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+n);let i=n.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);let l=r.createTracker(o);l.move(n+" ".repeat(i-n.length)),l.shift(i);let s=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,l.current()),f);return s(),u;function f(d,p,m){return p?(m?"":" ".repeat(i))+d:(m?n:n+" ".repeat(i-n.length))+d}}var BS={exit:{taskListCheckValueChecked:xW,taskListCheckValueUnchecked:xW,paragraph:sge}},HS={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:uge}};function xW(e){let t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function sge(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1],o=r.children[0];if(o&&o.type==="text"){let a=t.children,n=-1,i;for(;++n<a.length;){let l=a[n];if(l.type==="paragraph"){i=l;break}}i===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function uge(e,t,r,o){let a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=wu(o);n&&l.move(i);let s=cW(e,t,r,{...o,...l.current()});return n&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+i}}function VS(){return[RS,_S(),IS,FS,BS]}function US(e){return{extensions:[OS,kS(),MS,NS(e),HS]}}function Pm(e={}){let t=this.data();r("micromarkExtensions",XU(e)),r("fromMarkdownExtensions",VS()),r("toMarkdownExtensions",US(e));function r(o,a){(t[o]?t[o]:t[o]=[]).push(a)}}var Dr=require("@mui/material");var _m=(0,Dr.styled)("a")(({theme:e})=>({color:e.palette.background.brand?.default,textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer",fontFamily:"inherit"})),hW=(0,Dr.styled)("a")(()=>({textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer"})),gW=(0,Dr.styled)("p")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),TW=(0,Dr.styled)("p")(({theme:e})=>({color:e.palette.text.constant?.white||nL.inverse,marginBlock:"0px",fontFamily:"inherit"})),WS=(0,Dr.styled)("h1")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),qS=(0,Dr.styled)("h2")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),GS=(0,Dr.styled)("h3")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),zS=(0,Dr.styled)("h4")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),jS=(0,Dr.styled)("h5")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),KS=(0,Dr.styled)("h6")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),$S=(0,Dr.styled)("blockquote")(({theme:e})=>({color:e.palette.text.default,borderLeft:`2px solid ${e.palette.text.brand}`,backgroundColor:e.palette.background.tertiary})),YS=(0,Dr.styled)("ul")(({theme:e})=>({color:e.palette.text.default})),ZS=(0,Dr.styled)("li")(({theme:e})=>({color:e.palette.text.default,...e.typography.textB1Regular,fontFamily:"inherit"})),QS=(0,Dr.styled)("th")(({theme:e})=>({color:e.palette.text.default,...e.typography.textH3Medium,marginBlock:"0px",fontFamily:"inherit"})),XS=(0,Dr.styled)("td")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),SW=(0,Dr.styled)("pre")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",fontFamily:"inherit"})),CW=(0,Dr.styled)("code")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",padding:"1.5px",paddingInline:"5px",fontFamily:"inherit",borderRadius:3}));var Qe=require("react/jsx-runtime"),Eu=({content:e})=>(0,Qe.jsx)(Ud,{remarkPlugins:[Pm],rehypePlugins:[pS],components:{p:({...t})=>(0,Qe.jsx)(gW,{children:t.children}),a:({...t})=>(0,Qe.jsx)(_m,{onClick:r=>{r.preventDefault(),window.open(t.href,"_blank")},href:t.href,children:t.children}),h1:({...t})=>(0,Qe.jsx)(WS,{children:t.children}),h2:({...t})=>(0,Qe.jsx)(qS,{children:t.children}),h3:({...t})=>(0,Qe.jsx)(GS,{children:t.children}),h4:({...t})=>(0,Qe.jsx)(zS,{children:t.children}),h5:({...t})=>(0,Qe.jsx)(jS,{children:t.children}),h6:({...t})=>(0,Qe.jsx)(KS,{children:t.children}),blockquote:({...t})=>(0,Qe.jsx)($S,{children:t.children}),ul:({...t})=>(0,Qe.jsx)(YS,{children:t.children}),li:({...t})=>(0,Qe.jsx)(ZS,{children:t.children}),th:({...t})=>(0,Qe.jsx)(QS,{children:t.children}),td:({...t})=>(0,Qe.jsx)(XS,{children:t.children}),pre:({...t})=>(0,Qe.jsx)(SW,{children:t.children}),code:({...t})=>(0,Qe.jsx)(CW,{children:t.children})},children:e}),ep=({content:e})=>(0,Qe.jsx)(Ud,{remarkPlugins:[Pm],components:{p:({...r})=>(0,Qe.jsx)(TW,{children:r.children}),a:({...r})=>(0,Qe.jsx)(_m,{onClick:o=>{window.open(r.href,"_blank"),o.stopPropagation()},as:"a",children:r.children}),h1:({...r})=>(0,Qe.jsx)(WS,{children:r.children}),h2:({...r})=>(0,Qe.jsx)(qS,{children:r.children}),h3:({...r})=>(0,Qe.jsx)(GS,{children:r.children}),h4:({...r})=>(0,Qe.jsx)(zS,{children:r.children}),h5:({...r})=>(0,Qe.jsx)(jS,{children:r.children}),h6:({...r})=>(0,Qe.jsx)(KS,{children:r.children}),blockquote:({...r})=>(0,Qe.jsx)($S,{children:r.children}),ul:({...r})=>(0,Qe.jsx)(YS,{children:r.children}),li:({...r})=>(0,Qe.jsx)(ZS,{children:r.children}),th:({...r})=>(0,Qe.jsx)(QS,{children:r.children}),td:({...r})=>(0,Qe.jsx)(XS,{children:r.children})},children:(r=>{if(!r)return r;try{return JSON.parse(`"${r}"`)}catch{return r}})(e)}),yW=({content:e})=>(0,Qe.jsx)(Ud,{remarkPlugins:[Pm],components:{a:({...t})=>(0,Qe.jsx)(hW,{onClick:r=>{window.open(t.href,"_blank"),r.stopPropagation()},as:"a",children:t.children})},children:e});var JS=require("react/jsx-runtime");function fge({title:e,onClick:t,placement:r,children:o,fontSize:a,fontWeight:n=400,variant:i="standard",bgColor:l="#141414",componentsProps:s={},...u}){return(0,JS.jsx)(tr,{enterDelay:0,leaveDelay:1200,componentsProps:bW.default.merge({tooltip:{sx:{background:l,color:Xe,maxWidth:"600px",fontSize:a||(i==="standard"?"1rem":"0.75rem"),fontWeight:{fontWeight:n},borderRadius:"0.5rem",padding:i==="standard"?"0.9rem":"0.5rem 0.75rem",boxShadow:"rgba(0, 0, 0, 0.6) 0px 4px 10px, rgba(0, 0, 0, 0.5) 0px 2px 4px"}},popper:{sx:{zIndex:9999999999,opacity:"1"}},arrow:{sx:{color:l}}},s),title:typeof e=="string"?(0,JS.jsx)(ep,{content:e}):e,placement:r,arrow:!0,onClick:t,...u,children:o})}var ge=fge;var o3=require("react/jsx-runtime"),dge=({helpText:e,style:t={},...r})=>(0,o3.jsx)(ge,{title:e,...r,children:(0,o3.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",...t},children:(0,o3.jsx)(J2,{...Co})})}),Ui=dge;var wr=require("react/jsx-runtime"),vW=(0,y.styled)(Kt)(({theme:e,borderColor:t})=>({width:e.spacing(4),height:e.spacing(4),cursor:"pointer",border:`1.5px solid ${t||e.palette.common.white} !important`})),pge=(0,y.styled)("div")(({theme:e})=>({width:e.spacing(4.5),height:e.spacing(4.5),border:`1.5px solid ${e.palette.common.white}`,borderRadius:"50%",background:w2,display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"-10px",zIndex:0,"&:hover":{cursor:"pointer"}})),mge=(0,y.styled)("div")({display:"flex",alignItems:"center",padding:"5px 15px 5px 10px","&:hover":{cursor:"pointer",background:"#cecece80 !important"}}),cge=(0,y.styled)(z)({marginLeft:"10px"}),xge=(0,y.styled)(zf)(()=>({"& .MuiPopover-paper":{marginTop:"10px",maxHeight:"331px"}})),hge=({users:e,providerUrl:t,onOpenWorkspace:r})=>{let[o,a]=(0,wW.useState)(null),n=d=>{window.open(d,"_blank","noreferrer")},i=d=>{a(d.currentTarget)},l=()=>{a(null)},s=Object.entries(e).length,u=4,f=(0,y.useTheme)();return(0,wr.jsxs)(c2,{max:u+1,children:[Object.entries(e).slice(0,u).map(([d,p])=>(0,wr.jsx)(ge,{componentsProps:{tooltip:{sx:{background:f.palette.background.paper,color:f.palette.text.primary,boxShadow:f.shadows[4]}},arrow:{sx:{color:f.palette.background.paper}}},title:(0,wr.jsxs)("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column"},children:[(0,wr.jsx)(z,{style:{display:"flex",justifyContent:"center",flexDirection:"column",margin:"auto",fontSize:"1rem"},children:p.name}),(0,wr.jsx)(Po,{}),(0,wr.jsx)(Me,{size:"small",variant:"outlined",onClick:r,style:{fontSize:"1rem",padding:"2px 8px",minWidth:"auto",marginTop:"8px"},children:"Open Recents"})]}),arrow:!0,children:(0,wr.jsx)(vW,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"},onClick:()=>n(`${t}/user/${p.user_id}`)},d)},d)),s>u&&(0,wr.jsxs)(wr.Fragment,{children:[(0,wr.jsx)(pge,{onClick:i,"aria-describedby":"user-popover",children:o?(0,wr.jsx)(Zo,{fill:f.palette.common.white,...Co,style:{marginLeft:"4px"}}):(0,wr.jsx)(z,{variant:"body2",style:{color:f.palette.common.white,fontSize:"12px"},children:`+${s-u}`})}),(0,wr.jsx)(xge,{id:"user-popover",open:!!o,anchorEl:o,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:Object.entries(e).slice(u,s).map(([d,p])=>(0,wr.jsxs)(mge,{onClick:()=>n(`${t}/user/${p.user_id}`),children:[(0,wr.jsx)(vW,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"}}),(0,wr.jsx)(cge,{variant:"body1",children:p.name})]},d))})]})]})},eC=hge;var tC=require("react/jsx-runtime");function gge({tooltip:e,tooltipPlacement:t="top",variant:r="filled",label:o,icon:a,onClick:n,onDelete:i,style:l,...s}){return(0,tC.jsx)(ge,{title:e,placement:t,children:(0,tC.jsx)(Ht,{sx:{paddingY:"10px",padding:"5px 6px !important",color:"black",fontSize:"14px",textTransform:"uppercase",fontWeight:400,height:"unset",borderRadius:"100px",border:"0.5px solid #51636B",background:"white",maxWidth:"230px"},variant:r,label:o,onClick:n,onDelete:i,icon:a,style:l,...s})})}var rC=gge;var oC=require("react");var bo=require("react/jsx-runtime"),Tge=({zoomEffect:e=!1,imgURL:t,type:r,width:o,height:a,style:n={}})=>{let[i,l]=(0,oC.useState)(!1),[s,u]=(0,oC.useState)(!1),f=()=>{e&&u(!0)},d=()=>{u(!1)},p=({type:m})=>m.type==="filter"?(0,bo.jsx)(a5,{width:o,height:a,style:n}):(0,bo.jsx)(rn,{width:o,height:a,style:n});return(0,bo.jsx)(bo.Fragment,{children:t&&t.length>0?(0,bo.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:i?(0,bo.jsx)(p,{type:r}):(0,bo.jsxs)(bo.Fragment,{children:[(0,bo.jsx)("img",{src:t[0],alt:"Design SnapShot",loading:"lazy",onClick:f,onError:()=>l(!0),style:{cursor:"pointer",width:"100%",height:"100%",objectFit:"cover"}}),(0,bo.jsx)(xa,{open:s,onClose:d,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"hidden",maxWidth:"60vw"}},children:(0,bo.jsx)("img",{src:t[0],alt:"Zoomed Design SnapShot",style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})}):(0,bo.jsx)(p,{type:r})})},Ru=Tge;var l3=require("react");var RW=G(require("js-yaml")),Sge=async(e,t=!0,r)=>new Promise(o=>{let a=new Image;t&&!e.startsWith("http")?a.src=(r?r():"")+e:a.src=e,a.onload=()=>{o(!0)},a.onerror=()=>{o(!1)}}),Cge=async(e,t,r)=>{let o=[];for(let a of e){let n=`${t}/${a.toLowerCase()}/${r}/${a.toLowerCase()}-color.svg`;await Sge(n)&&o.push(a)}return o},EW=e=>{try{return RW.default.load(e)?.version||aC}catch(t){return console.error("Failed to parse pattern file to get version:",t),aC}},OW=async({technologies:e,basePath:t="",subBasePath:r="",setAvailableTechnologies:o})=>{let a=await Cge(e,t,r);o(a)},aC="0.0.0",a3=e=>{switch(e.visibility){case"published":return e?.catalog_data?.published_version||aC;case"public":case"private":return EW(e.pattern_file);default:return EW(e.pattern_file)}};var Ye=require("@mui/material");var AW=(0,Ye.styled)("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px",zIndex:10})),PW=(0,Ye.styled)("div")(()=>({color:"#eee",fontSize:"0.875rem",lineHeight:"1.5",fontWeight:"600",borderBottom:"1px solid rgba(231, 239, 243, 0.40)"})),_W=(0,Ye.styled)("div")(()=>({color:"#eee",overflow:"hidden",fontSize:"14px",lineHeight:"24px",fontWeight:"400",marginTop:".8rem"})),kW=(0,Ye.styled)("div")(({catalogClassName:e,theme:t})=>({font:"bold 10px sans-serif",WebkitTransform:"rotate(-45deg)",textAlign:"center",transform:"rotate(-45deg)",position:"relative",padding:"4px 0",top:"15px",left:"-30px",width:"120px",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",backgroundColor:{community:I2.main,official:t.palette.background.cta?.default||"#EBC017",verified:t.palette.background.brand?.default||"#00B39F"}[e],color:e==="official"?t.palette.common.black:t.palette.common.white})),nC=(0,Ye.styled)("div")(({shouldFlip:e,isDetailed:t,outerStyles:r,theme:o})=>({position:"relative",borderRadius:"1rem",textAlign:"center",transformStyle:"preserve-3d",display:"block",perspective:"1000px",transition:"all .9s ease-out",...e&&{"&:hover":{cursor:"pointer","& .innerCard":{transform:"rotateY(180deg)"}}},...t&&{[o.breakpoints.down("lg")]:{height:"16.75rem"}},...r})),iC=(0,Ye.styled)("div")(({shouldFlip:e,isDetailed:t})=>({position:"relative",width:"100%",height:"100%",textAlign:"center",transition:"transform 0.6s",...e&&{transformOrigin:"50% 50%",transformStyle:"preserve-3d"},...t&&{boxShadow:"0 4px 8px 0 rgba(0,0,0,0.2)",borderRadius:"0.9375rem"}})),IW=(0,Ye.styled)("span")(({theme:e})=>({position:"absolute",top:"0",right:"0",minWidth:"3rem",padding:"0 0.75rem",fontSize:"0.875rem",textTransform:"capitalize",background:e.palette.background.brand?.default,color:e.palette.background.constant?.white,borderRadius:"0 1rem 0 2rem",zIndex:5})),MW=(0,Ye.styled)("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.mode==="light"?Ta:Sa,fontWeight:"600"})),LW=(0,Ye.styled)(Ye.Typography)(({theme:e,hasRibbon:t})=>({fontWeight:"bold",textTransform:"capitalize",color:e.palette.text.default,fontSize:"1.125rem",padding:"0rem 1rem",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"center",width:"100%",margin:t?"3.5rem 0 1.59rem 0":"2rem 0 1.59rem 0",fontFamily:"inherit",...t&&{paddingLeft:"1.5rem"}})),DW=(0,Ye.styled)("div")(({isDetailed:e,theme:t})=>({display:"flex",justifyContent:"space-around",fontSize:"0.2rem",color:t.palette.mode==="light"?"rgba(26, 26, 26, .8)":t.palette.text.default,padding:"0.9rem 0.1rem",background:t.palette.mode==="light"?"#E7EFF3":Ta,...e&&{position:"absolute",bottom:"0px"},...!e&&{marginTop:"1.2rem"},borderRadius:"0 0 0.9375rem 0.9375rem",width:"100%"})),FW=(0,Ye.styled)("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),n3=(0,Ye.styled)("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),Qit=(0,Ye.styled)("div")(({theme:e})=>({background:e.palette.background.surfaces,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"})),Xit=(0,Ye.styled)("div")(({theme:e})=>({display:"inline-block",backgroundColor:e.palette.background.supplementary,color:e.palette.text.constant?.white,borderRadius:"4px",fontSize:"0.75rem",fontWeight:"bold",margin:"5px 0",padding:"2px 5px",maxWidth:"fit-content"})),NW=(0,Ye.styled)("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.75",color:e.palette.text.constant?.white,position:"absolute",bottom:"16px",left:"16px",borderRadius:"4px",background:e.palette.background.supplementary,justifyContent:"center"})),BW=(0,Ye.styled)("p")(({theme:e})=>({fontSize:"0.75rem",margin:"0",padding:"0.25rem .5rem",lineHeight:"1.5",textTransform:"lowercase",fontWeight:"600",borderRadius:"4.05px",color:e.palette.text.constant?.white})),Jit=(0,Ye.styled)("div")(()=>({perspective:"1000px","&:hover .flipper":{transform:"rotateY(-180deg)"}})),elt=(0,Ye.styled)("div")(()=>({transition:"0.6s",transformStyle:"preserve-3d",position:"relative"})),yge=(0,Ye.styled)("div")(()=>({backfaceVisibility:"hidden",position:"absolute",top:0,left:0,width:"100%",height:"100%"})),tlt=(0,Ye.styled)(yge)(()=>({zIndex:2,transform:"rotateY(0deg)"})),rlt=(0,Ye.styled)("div")(()=>({transform:"rotateY(-180deg)",color:"#fff",display:"inline-flex",flexDirection:"column",padding:"16px",height:"100%",width:"100%",position:"relative",bottom:0,left:0,backfaceVisibility:"hidden"})),olt=(0,Ye.styled)("div")(({theme:e})=>({position:"absolute",background:`linear-gradient(to bottom right, black 40%, ${e.palette.background.brand?.default})`,width:"100%",top:0,left:0,display:"flex",flexDirection:"column",alignItems:"left",padding:"16px",boxShadow:"2px 2px 3px 0px black",borderRadius:"1rem"})),HW=(0,Ye.styled)("div")({height:"max-content",display:"flex",marginTop:"1.2rem",flexDirection:"row",padding:"0rem 1rem",justifyContent:"flex-start",alignItems:"center","@media (max-width:1200px)":{height:"max-content"}}),VW=(0,Ye.styled)("div")(()=>({display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",gap:"1rem",alignItems:"flex-start",background:"rgba(231, 239, 243, 0.40)",borderRadius:"0.25rem",padding:"0.5rem 1rem",alignSelf:"stretch"})),alt=(0,Ye.styled)("div")({display:"flex",alignItems:"center",color:"#fff",margin:"20px 0"}),UW=(0,Ye.styled)("div")(({isCatalog:e})=>({boxShadow:"2px 2px 3px 0px rgba(26, 26, 26, 1)",position:"absolute",width:"100%",height:"100%",WebkitBackfaceVisibility:"hidden",borderRadius:"0.9375rem",backfaceVisibility:"hidden",color:"white",transform:"rotateY(180deg)",...e&&{background:"linear-gradient(335deg, rgba(0, 179, 159, 0.80) -13.6%, rgba(0, 0, 0, 0.68) 66.8%), radial-gradient(3970.04% 147.22% at 47.5% 100%, #000 0%, #395357 100%)"},...!e&&{background:"linear-gradient(250deg, #477e96 0%, #00b39f 35%, rgb(60, 73, 79) 100%)"}})),i3=e=>{let t=`linear-gradient(to left bottom, ${p1}, ${f1},white, white, white, white, white, white, white, white, ${p1}, ${f1})`,r=`linear-gradient(to right top, ${m1}, ${Le[30]}, ${Le[20]}, ${Le[10]}, ${Le[10]}, ${Le[10]}, ${Le[10]}, ${Le[10]}, ${Le[10]}, ${J[20]}, ${J[10]}, black)`;return e?t:r},lC=(0,Ye.styled)("div")(({shouldFlip:e,isDetailed:t,theme:r})=>{let o=r.palette.mode==="light",a=i3(o),n=`2px 2px 3px 0px ${r.palette.background.brand?.default}`;return{position:"relative",zIndex:1,...e&&{position:"absolute",boxShadow:n,background:a},...t&&{boxShadow:n,background:a},width:"100%",height:"100%",WebkitBackfaceVisibility:"hidden",borderRadius:"0.9375rem",backfaceVisibility:"hidden"}}),WW=(0,Ye.styled)("div")(()=>({fontSize:"0.875rem",textTransform:"capitalize",color:"#eee",margin:"0rem",padding:"0.1rem",fontWeight:"400",lineHeight:"1.5"})),qW=(0,Ye.styled)("p")(()=>({fontSize:"0.876rem",margin:"0rem",lineHeight:"1.5",fontWeight:"400",color:"#eee"})),GW=(0,Ye.styled)("div")(()=>({height:"max-content",display:"flex",margin:"0",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start",fontWeight:"400",textAlign:"right",color:"#E7EFF3",textTransform:"capitalize","@media (max-width:1200px)":{height:"max-content"}})),zW=(0,Ye.styled)("div")(({theme:e})=>{let t=e.palette.mode==="light",r=i3(t),o=`2px 2px 3px 0px ${e.palette.background.brand?.default}`;return{background:r,boxShadow:o,textAlign:"center",borderRadius:"1rem",width:"15rem",height:"18rem",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",[e.breakpoints.down("lg")]:{height:"18.75rem"}}});var we=require("react/jsx-runtime"),Tlt=(0,y.styled)("a")(()=>({textDecoration:"none"}));var bge=({catalogClassName:e})=>e?(0,we.jsx)(AW,{children:(0,we.jsx)(kW,{catalogClassName:e,children:e})}):(0,we.jsx)(we.Fragment,{}),vge=({pattern:e,patternType:t,cardHeight:r="16.5rem",cardWidth:o="15rem",cardStyles:a,shouldFlip:n=!0,isDetailed:i=!0,cardTechnologies:l=!0,avatarUrl:s,UserName:u,children:f,basePath:d,subBasePath:p,getHostUrl:m,onCardClick:x})=>{let h={height:r,width:o,...a},g=(0,y.useTheme)(),T=e.catalog_data?.compatibility||[],R=5,[w,M]=(0,l3.useState)([]),I=a3(e);return(0,l3.useEffect)(()=>{OW({technologies:T,basePath:d,subBasePath:p,setAvailableTechnologies:M})},[]),n?(0,we.jsx)(nC,{shouldFlip:n,isDetailed:i,outerStyles:h,onClick:x,children:(0,we.jsxs)(iC,{shouldFlip:n,className:"innerCard",children:[(0,we.jsxs)(lC,{shouldFlip:n,isDetailed:i,children:[i&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(bge,{catalogClassName:e?.catalog_data?.content_class??""}),(0,we.jsx)(IW,{children:t}),(0,we.jsx)(LW,{hasRibbon:!!e?.catalog_data?.content_class,children:e.name})]}),(0,we.jsx)(n3,{children:(0,we.jsx)("div",{style:{background:g.palette.mode==="light"?"rgba(231, 239, 243, 0.4)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"},children:f})}),i&&(0,we.jsx)(DW,{isDetailed:i,children:[{Icon:ba,count:e.download_count},{Icon:id,count:e.clone_count},{Icon:yd,count:e.view_count},{Icon:cd,count:e.deployment_count},{Icon:Fn,count:e.share_count}].map(({Icon:C,count:v},P)=>(0,we.jsxs)(FW,{children:[(0,we.jsx)(C,{width:18,height:18,fill:g.palette.mode==="light"?Ta:Sa}),(0,we.jsx)(MW,{children:v})]},P))})]}),n&&(0,we.jsxs)(UW,{isCatalog:!0,children:[(0,we.jsxs)(HW,{children:[(0,we.jsx)(Kt,{alt:"Design Author",src:s,sx:{width:"32px",height:"32px",color:"#293B43"}}),(0,we.jsx)(GW,{children:u})]}),(0,we.jsx)(n3,{style:{marginTop:"0.7rem",gap:"5px"},children:l&&(0,we.jsxs)(VW,{children:[(0,we.jsx)(PW,{children:"Technologies"}),(0,we.jsx)(he,{container:!0,style:{gap:"4px",alignItems:"flex-start",flexWrap:"nowrap"},children:T.length<1||w.length<1?(0,we.jsx)(_W,{children:"No technologies"}):(0,we.jsxs)(we.Fragment,{children:[w.slice(0,R).map((C,v)=>{let P=(m?m():"")+`${d}/${C.toLowerCase()}/${p}/${C.toLowerCase()}-color.svg`;return(0,we.jsx)(he,{children:(0,we.jsx)(ge,{title:C.toLowerCase(),children:(0,we.jsx)("img",{height:"24px",width:"24px",alt:C.toLowerCase(),src:P})},v)},v)}),w.length>R&&(0,we.jsxs)(he,{sx:{padding:"0 8px 0 4px",borderRadius:"16px",border:"1px solid #C9DBE3",background:"#E7EFF3",color:"#3C494E",fontSize:"14px",lineHeight:"1.5",fontWeight:"600"},children:["+",w.length-R]})]})})]})}),i&&(0,we.jsx)(n3,{style:{marginTop:"20px"},children:(0,we.jsx)(he,{container:!0,style:{justifyContent:"space-between",alignItems:"center"},children:(0,we.jsxs)(he,{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,we.jsxs)("div",{style:{display:"flex",flexDirection:"row",gap:"0.2rem",alignItems:"center"},children:[(0,we.jsx)(EF,{width:18,height:18}),(0,we.jsx)(qW,{children:"Updated At"})]}),(0,we.jsxs)(WW,{children:[" ",new Date(e.updated_at.toString().slice(0,10)).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"})]})]})})}),I&&(0,we.jsx)(NW,{children:(0,we.jsxs)(BW,{children:["v",I]})})]})]})}):(0,we.jsx)(nC,{shouldFlip:n,isDetailed:i,outerStyles:h,children:(0,we.jsx)(iC,{shouldFlip:n,className:"innerCard",children:(0,we.jsx)(lC,{shouldFlip:n,isDetailed:i,children:f})})})},Ou=vge;var km=require("react/jsx-runtime"),wge=()=>{let e=(0,y.useTheme)();return(0,km.jsxs)(zW,{children:[(0,km.jsx)(Y2,{fill:e.palette.text.default,width:"100px",height:"100px"}),(0,km.jsx)("h3",{style:{color:e.palette.text.default},children:"No match found"})]})},sC=wge;var f3=G(require("react"));var jW=require("react/jsx-runtime");function Ege({children:e,open:t,anchorEl:r,placement:o="bottom-end",...a}){return(0,jW.jsx)(jf,{open:t,anchorEl:r,placement:o,...a,children:e})}var tp=Ege;var KW=G(require("mui-datatables")),rp=G(require("react"));var uC=require("react/jsx-runtime"),Rge=({width:e=V,height:t=U,...r})=>(0,uC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:e,height:t,fill:r.fill||"currentColor",...r,children:(0,uC.jsx)("path",{d:"M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"})}),fC=Rge;var Oge=({kind:e,model:t,color:r})=>!e||!t||!r?null:`/ui/public/static/img/meshmodels/${t}/${r}/${e.toLowerCase()}-${r}.svg`;var pC=G(require("moment"));var dC=require("react/jsx-runtime"),Wi=e=>(0,pC.default)(e).fromNow(),fs=e=>(0,pC.default)(e).format("ddd, MMM D, YYYY h:mm A"),ds=e=>{let t={year:"numeric",month:"short",day:"numeric"};return new Date(e).toLocaleDateString("en-US",t)},s3=({date:e})=>(0,dC.jsx)(ge,{title:fs(e),disableInteractive:!0,children:(0,dC.jsx)("div",{children:Wi(e)})});var Dt=require("react/jsx-runtime"),Vo=(0,y.styled)("div",{shouldForwardProp:e=>e!=="disabled"})(({disabled:e=!1})=>({width:"fit-content",cursor:e?"not-allowed":"pointer",opacity:e?"0.5":"1",display:"flex","& svg":{cursor:e?"not-allowed":"pointer"}})),op=({actionsList:e})=>{let[t,r]=rp.default.useState(null),[o,a]=rp.default.useState(!1),n=(0,y.useTheme)(),i=u=>{r(u.currentTarget)},l=()=>{r(null),a(!1)},s=u=>{u.type==="share-social"?a(!o):(u.onClick&&u.onClick(),l())};return(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)(Gt,{title:"View Actions",onClick:i,icon:(0,Dt.jsx)(fC,{fill:n.palette.icon.default}),arrow:!0}),(0,Dt.jsx)(Fl,{id:"basic-menu",anchorEl:t,open:!!t,onClose:l,sx:{"& .MuiPaper-root":{backgroundColor:n.palette.background.card}},children:e&&e.map((u,f)=>u.type==="share-social"?[(0,Dt.jsxs)(Mt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[(0,Dt.jsx)(Xa,{children:(0,Dt.jsx)(Fn,{width:24,height:24,fill:n.palette.text.primary})}),(0,Dt.jsx)(er,{sx:{color:n.palette.text.primary},children:u.title})]},`${f}-menuitem`),(0,Dt.jsx)(ca,{variant:"submenu",in:o,unmountOnExit:!0,children:u.customComponent},`${f}-collapse`)]:(0,Dt.jsx)(Vo,{disabled:u.disabled,children:(0,Dt.jsxs)(Mt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[(0,Dt.jsx)(Xa,{children:u.icon}),(0,Dt.jsx)(er,{sx:{color:n.palette.text.primary},children:u.title})]})},f))})]})},Age=({data:e,columns:t,options:r={},tableCols:o,updateCols:a,columnVisibility:n,rowsPerPageOptions:i=[10,25,50,100],...l})=>{let s={...r,print:!1,download:!1,search:!1,filter:!1,viewColumns:!1,rowsPerPageOptions:i,onViewColumnsChange:(d,p)=>{switch(p){case"add":{let m=t.find(x=>x.name===d);m&&m.options&&(m.options.display=!0,a&&a([...t]));break}case"remove":{let m=t.find(x=>x.name===d);m&&m.options&&(m.options.display=!1,a&&a([...t]));break}}}},u=(0,rp.useCallback)(()=>{t?.forEach(d=>{typeof d=="object"&&d!==null&&(d.options||(d.options={}),d.options.display=n&&n[d.name],["updated_at","created_at","deleted_at","last_login_time","joined_at","last_run","next_run"].includes(d.name)&&(d.options.customBodyRender=p=>{if(p==="NA"||p===null||p===void 0)return(0,Dt.jsx)(Dt.Fragment,{children:p});if(typeof p=="object"&&"Valid"in p){let m=p;return m.Valid&&m.Time?(0,Dt.jsx)(s3,{date:m.Time}):(0,Dt.jsx)(Dt.Fragment,{children:"NA"})}else return typeof p=="string"?(0,Dt.jsx)(s3,{date:p}):(0,Dt.jsx)(Dt.Fragment,{children:p})}))}),a&&a([...t])},[n,a]);return rp.default.useEffect(()=>{u()},[u]),(0,Dt.jsx)(KW.default,{columns:o??[],data:e||[],title:void 0,components:{ExpandButton:()=>"",Checkbox:Jr},options:{...s,elevation:0,enableNestedDataAccess:"."},...l})},Uo=Age;var u3=require("react/jsx-runtime");function Pge({children:e,title:t,onClick:r,icon:o,style:a,arrow:n=!0,disabled:i=!1,iconType:l,id:s,placement:u}){let f=(0,y.useTheme)();return(0,u3.jsx)(ge,{title:t,arrow:n,placement:u,id:s,children:(0,u3.jsx)(Vo,{disabled:i,children:(0,u3.jsx)(rt,{disabled:i,onClick:r,sx:{"&:hover":{"& svg":{fill:l==="delete"?f.palette.error.main:f.palette.primary.brand?.default}},...a},children:o||e})})})}var Gt=Pge;var Jo=require("react/jsx-runtime");function mC({columns:e,id:t,customToolsProps:r,style:o}){let[a,n]=f3.default.useState(!1),[i,l]=f3.default.useState(null),s=(0,y.useTheme)(),u=p=>{if(p.stopPropagation(),n(m=>!m),i){l(null);return}l(p.currentTarget)},f=()=>{l(null),n(!1)},d=(p,m)=>{p.stopPropagation(),r.setColumnVisibility(x=>({...x,[m]:p.target.checked}))};return(0,Jo.jsx)(f3.default.Fragment,{children:(0,Jo.jsxs)("div",{id:t,children:[(0,Jo.jsx)(Gt,{title:"View Columns",onClick:u,icon:(0,Jo.jsx)(U2,{fill:s.palette.icon.default}),arrow:!0}),(0,Jo.jsx)(tp,{style:{...o,zIndex:1350},open:!!i,anchorEl:i,placement:"bottom-end",modifiers:[{name:"flip",options:{enabled:!1}},{name:"preventOverflow",options:{enabled:!0,boundariesElement:"scrollParent"}}],children:(0,Jo.jsx)(K,{children:(0,Jo.jsx)(_n,{onClickAway:f,children:(0,Jo.jsx)("div",{children:(0,Jo.jsx)(Pr,{sx:{display:"flex",flexDirection:"column",padding:"1rem",boxShadow:a?"0px 4px 8px rgba(0, 0, 0, 0.2)":"none",background:s.palette.background.surfaces},children:e.map(p=>(0,Jo.jsx)(Ll,{control:(0,Jo.jsx)(Jr,{checked:r.columnVisibility[p.name],onChange:m=>d(m,p.name)}),label:p.label},p.name))})})})})})]})})}var fn=mC;var $W=require("react");var jn=require("react/jsx-runtime"),_ge=(0,y.styled)("figure")(({align:e})=>({margin:"1rem 0",textAlign:e,width:"100%"})),kge=(0,y.styled)("figcaption")(({align:e})=>({fontSize:"0.9rem",color:"#666",marginTop:"0.5rem",textAlign:e})),Ige=({src:e,alt:t,caption:r,align:o="left",...a})=>{let[n,i]=(0,$W.useState)(!1),l=()=>{i(!0)},s=()=>{i(!1)};return(0,jn.jsxs)(jn.Fragment,{children:[(0,jn.jsxs)(_ge,{align:o,children:[(0,jn.jsx)("img",{src:e,alt:t||r||"",loading:"lazy",onClick:l,...a,style:{cursor:"pointer",maxWidth:"100%",height:"auto",boxShadow:"rgba(149, 157, 165, 0.2) 0px 8px 24px",borderRadius:"15px",width:"50%"}}),r&&(0,jn.jsx)(kge,{align:o,children:r})]}),(0,jn.jsx)(xa,{open:n,onClose:s,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"auto",maxWidth:"100%"}},children:(0,jn.jsx)("img",{src:e,alt:t||r||"",onClick:s,style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})},cC=Ige;var tq=require("@mui/material");var YW=require("react/jsx-runtime");function Mge({children:e,...t}){return(0,YW.jsx)(Uf,{...t,children:e})}var Im=Mge;var ZW=require("react/jsx-runtime");function Lge({children:e,...t}){return(0,ZW.jsx)(kl,{...t,children:e})}var Mm=Lge;var Lm=require("@mui/material");var QW=(0,Lm.styled)("div")(({theme:e})=>{let t=e.palette.mode==="light"?td:Cr,r=e.palette.mode==="light"?NT:oL;return{display:"flex",justifyContent:"space-between",padding:"1rem",boxShadow:"inset 0px -1px 3px 0px rgba(0,0,0,0.2)",background:`linear-gradient(90deg, ${t}, ${r})`,filter:e.palette.mode==="light"?`progid:DXImageTransform.Microsoft.gradient(startColorstr='${td}',endColorstr='${NT}',GradientType=1)`:`progid:DXImageTransform.Microsoft.gradient(startColorstr='${c1}',GradientType=1)`}}),XW=(0,Lm.styled)("div")(()=>({zIndex:"100",borderRadius:"5px"})),JW=(0,Lm.styled)("div")(({theme:e})=>({padding:"1rem 1.5rem",display:"flex",justifyContent:"flex-end",backgroundColor:e.palette.mode==="light"?td:c1,boxShadow:"inset 0px 3px 5px 0px rgba(0,0,0,0.25)"})),eq=(0,Lm.styled)("div")(({theme:e})=>({padding:"2rem 1rem",backgroundColor:e.palette.mode==="light"?Xe:ed}));var Yr=require("react/jsx-runtime");function Dge({open:e,onClose:t,title:r,leftHeaderIcon:o,helpText:a,helpArea:n,actions:i,hideActions:l=!1,content:s,maxWidth:u="xs",...f}){return(0,Yr.jsx)(xa,{sx:{"& .MuiDialog-paper":{borderRadius:"10px"}},open:e,maxWidth:u,onClose:t,slots:{backdrop:tq.Backdrop},slotProps:{backdrop:{timeout:500}},...f,children:(0,Yr.jsxs)(XW,{children:[(0,Yr.jsxs)(QW,{children:[o&&(0,Yr.jsx)("div",{style:{display:"flex",alignItems:"center"},children:o}),r&&(0,Yr.jsx)(Yr.Fragment,{children:(0,Yr.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,Yr.jsx)(Ml,{children:r})})}),(0,Yr.jsx)("div",{style:{display:"flex",alignItems:"center"},children:a&&(0,Yr.jsx)("div",{children:n})})]}),(0,Yr.jsx)(Mm,{children:(0,Yr.jsx)(eq,{children:s})}),!l&&(0,Yr.jsx)(Im,{children:(0,Yr.jsx)(JW,{children:i})})]})})}var xC=Dge;var hC=require("react/jsx-runtime");function Fge({children:e,style:t,...r}){return(0,hC.jsx)(Ml,{sx:t,...r,children:(0,hC.jsx)(z,{sx:{flexGrow:1,fontSize:"1.25rem",textAlign:"center"},variant:"h6",children:e})})}var Dm=Fge;var ps=require("react/jsx-runtime");function Nge({icon:e,message:t,pointerLabel:r,poiner:o=!1}){return(0,ps.jsxs)("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",minHeight:"50vh"},children:[o&&(0,ps.jsxs)(he,{style:{display:"flex",width:"100%",padding:"0 40px"},children:[(0,ps.jsx)(o5,{}),(0,ps.jsx)(z,{sx:{fontSize:24,color:"#808080",px:5,py:2,lineHeight:1.5,letterSpacing:"0.15px",display:"flex",alignItems:"flex-end",marginBottom:"-2rem"},children:r})]}),(0,ps.jsxs)(he,{style:{marginTop:"120px"},children:[e,(0,ps.jsx)(z,{sx:{fontSize:"1.5rem",color:"#808080",px:5,py:2,lineHeight:1},children:t})]})]})}var gC=Nge;var d3=require("@mui/material");var dn=require("react"),Bge=(0,dn.createContext)(null),TC={didCatch:!1,error:null},Fm=class extends dn.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=TC}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){let{error:t}=this.state;if(t!==null){for(var r,o,a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];(r=(o=this.props).onReset)===null||r===void 0||r.call(o,{args:n,reason:"imperative-api"}),this.setState(TC)}}componentDidCatch(t,r){var o,a;(o=(a=this.props).onError)===null||o===void 0||o.call(a,t,r)}componentDidUpdate(t,r){let{didCatch:o}=this.state,{resetKeys:a}=this.props;if(o&&r.error!==null&&Hge(t.resetKeys,a)){var n,i;(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(TC)}}render(){let{children:t,fallbackRender:r,FallbackComponent:o,fallback:a}=this.props,{didCatch:n,error:i}=this.state,l=t;if(n){let s={error:i,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")l=r(s);else if(o)l=(0,dn.createElement)(o,s);else if(a!==void 0)l=a;else throw i}return(0,dn.createElement)(Bge.Provider,{value:{didCatch:n,error:i,resetErrorBoundary:this.resetErrorBoundary}},l)}};function Hge(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,o)=>!Object.is(r,t[o]))}var ir=require("react/jsx-runtime"),Vge=(0,d3.styled)(z)(({theme:e})=>({color:e.palette.text.default,fontWeight:"normal",marginTop:"2px",marginBottom:"2px",fontSize:"1.15rem"})),rq=(0,d3.styled)(_o)(({theme:e})=>({color:e.palette.border.brand,textDecoration:"underline",cursor:"pointer"})),Uge=(0,d3.styled)("div")(({theme:e})=>({display:"flex",flexDirection:"column",backgroundColor:e.palette.background.code,color:e.palette.text.tertiary,padding:".85rem",borderRadius:".2rem",marginBlock:".5rem"}));function p3({error:e,children:t,showPackageInfo:r,version:o}){return(0,ir.jsxs)("div",{role:"alert",children:[(0,ir.jsx)("h2",{children:"Uh-oh!\u{1F614} Please pardon the mesh."}),(0,ir.jsxs)(Uge,{children:[(0,ir.jsxs)("code",{children:[(0,ir.jsx)("strong",{children:"Error: "}),e.message]}),(0,ir.jsx)("br",{}),r&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("strong",{children:"Version:"})," ",o]})]}),(0,ir.jsxs)(Vge,{children:["We apologize for the inconvenience. The issue may be on our end. If troubleshooting doesn't work, please check out our support channels"," ",(0,ir.jsx)(rq,{href:"https://discuss.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Discuss Forum"})," "," or ",(0,ir.jsx)(rq,{href:"https://slack.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Slack"})]}),(0,ir.jsx)(K,{children:t})]})}var oq=(e,t)=>{let r=window.location.href,o=new Date().toLocaleString();console.log("Error Caught Inside Boundary --reportError",e,"Info",t,"Page URL:",r,"Timestamp:",o)},lo=({customFallback:e,children:t,onErrorCaught:r})=>{let o=window.location.href,a=new Date().toLocaleString();return(0,ir.jsx)(Fm,{FallbackComponent:e||(i=>(0,ir.jsx)(p3,{...i,pageUrl:o,timestamp:a})),onError:(i,l)=>{r?.(i.message),oq(i,l)},children:t})},SC=({Component:e,errorHandlingProps:t={children:null}})=>(0,ir.jsx)(lo,{...t,children:(0,ir.jsx)(e,{})}),CC=({Component:e})=>(0,ir.jsx)(Fm,{FallbackComponent:()=>null,onError:oq,children:(0,ir.jsx)(e,{})});var m3=G(require("@mui/material/Typography")),ip=require("react");var ea=require("@mui/material"),Au=require("react");var aq=require("react");var qi=require("react/jsx-runtime");function Wge({content:e,fontSize:t,fontWeight:r=400,variant:o="standard",bgColor:a="#141414",icon:n=(0,qi.jsx)(j2,{fontSize:"small"}),...i}){let[l,s]=(0,aq.useState)(null);return(0,qi.jsxs)(qi.Fragment,{children:[(0,qi.jsx)(rt,{size:"small",onClick:p=>{s(p.currentTarget)},sx:{color:"inherit",padding:"2px",verticalAlign:"middle"},children:n}),(0,qi.jsx)(zf,{open:!!l,anchorEl:l,onClose:()=>{s(null)},disablePortal:!0,container:l?.ownerDocument?.body,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},PaperProps:{sx:{background:a,zIndex:1501,opacity:"1",color:Xe,maxWidth:"500px",fontSize:t||(o==="standard"?"1rem":"0.75rem"),fontWeight:r,borderRadius:"0.5rem",padding:o==="standard"?"0.9rem":"0.5rem 0.75rem",boxShadow:"rgba(0, 0, 0, 0.6) 0px 4px 10px, rgba(0, 0, 0, 0.5) 0px 2px 4px"}},...i,children:typeof e=="string"?(0,qi.jsx)(ep,{content:e}):e})]})}var yC=Wge;var Zr=require("react/jsx-runtime"),Pu=(0,ea.styled)(rt)`
59
+ `))}function s(m,x,h,g){let T=h.enter("tableCell"),R=h.enter("phrasing"),w=r3(m,h,{...g,before:n,after:n});return R(),T(),w}function u(m,x){return fW(m,{align:x,alignDelimiters:o,padding:r,stringLength:a})}function f(m,x,h){let g=m.children,T=-1,R=[],w=x.enter("table");for(;++T<g.length;)R[T]=d(g[T],x,h);return w(),R}function d(m,x,h){let g=m.children,T=-1,R=[],w=x.enter("tableRow");for(;++T<g.length;)R[T]=s(g[T],m,x,h);return w(),R}function p(m,x,h){let g=LS(m,x,h);return h.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function pW(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function mW(e){let t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function cW(e,t,r,o){let a=mW(r),n=r.bulletCurrent||pW(r);t&&t.type==="list"&&t.ordered&&(n=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+n);let i=n.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);let l=r.createTracker(o);l.move(n+" ".repeat(i-n.length)),l.shift(i);let s=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,l.current()),f);return s(),u;function f(d,p,m){return p?(m?"":" ".repeat(i))+d:(m?n:n+" ".repeat(i-n.length))+d}}var BS={exit:{taskListCheckValueChecked:xW,taskListCheckValueUnchecked:xW,paragraph:sge}},HS={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:uge}};function xW(e){let t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function sge(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1],o=r.children[0];if(o&&o.type==="text"){let a=t.children,n=-1,i;for(;++n<a.length;){let l=a[n];if(l.type==="paragraph"){i=l;break}}i===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function uge(e,t,r,o){let a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=wu(o);n&&l.move(i);let s=cW(e,t,r,{...o,...l.current()});return n&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+i}}function VS(){return[RS,_S(),IS,FS,BS]}function US(e){return{extensions:[OS,kS(),MS,NS(e),HS]}}function Pm(e={}){let t=this.data();r("micromarkExtensions",XU(e)),r("fromMarkdownExtensions",VS()),r("toMarkdownExtensions",US(e));function r(o,a){(t[o]?t[o]:t[o]=[]).push(a)}}var Dr=require("@mui/material");var _m=(0,Dr.styled)("a")(({theme:e})=>({color:e.palette.background.brand?.default,textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer",fontFamily:"inherit"})),hW=(0,Dr.styled)("a")(()=>({textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer"})),gW=(0,Dr.styled)("p")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),TW=(0,Dr.styled)("p")(({theme:e})=>({color:e.palette.text.constant?.white||nL.inverse,marginBlock:"0px",fontFamily:"inherit"})),WS=(0,Dr.styled)("h1")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),qS=(0,Dr.styled)("h2")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),GS=(0,Dr.styled)("h3")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),zS=(0,Dr.styled)("h4")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),jS=(0,Dr.styled)("h5")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),KS=(0,Dr.styled)("h6")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),$S=(0,Dr.styled)("blockquote")(({theme:e})=>({color:e.palette.text.default,borderLeft:`2px solid ${e.palette.text.brand}`,backgroundColor:e.palette.background.tertiary})),YS=(0,Dr.styled)("ul")(({theme:e})=>({color:e.palette.text.default})),ZS=(0,Dr.styled)("li")(({theme:e})=>({color:e.palette.text.default,...e.typography.textB1Regular,fontFamily:"inherit"})),QS=(0,Dr.styled)("th")(({theme:e})=>({color:e.palette.text.default,...e.typography.textH3Medium,marginBlock:"0px",fontFamily:"inherit"})),XS=(0,Dr.styled)("td")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),SW=(0,Dr.styled)("pre")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",fontFamily:"inherit"})),CW=(0,Dr.styled)("code")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",padding:"1.5px",paddingInline:"5px",fontFamily:"inherit",borderRadius:3}));var Qe=require("react/jsx-runtime"),Eu=({content:e})=>(0,Qe.jsx)(Ud,{remarkPlugins:[Pm],rehypePlugins:[pS],components:{p:({...t})=>(0,Qe.jsx)(gW,{children:t.children}),a:({...t})=>(0,Qe.jsx)(_m,{onClick:r=>{r.preventDefault(),window.open(t.href,"_blank")},href:t.href,children:t.children}),h1:({...t})=>(0,Qe.jsx)(WS,{children:t.children}),h2:({...t})=>(0,Qe.jsx)(qS,{children:t.children}),h3:({...t})=>(0,Qe.jsx)(GS,{children:t.children}),h4:({...t})=>(0,Qe.jsx)(zS,{children:t.children}),h5:({...t})=>(0,Qe.jsx)(jS,{children:t.children}),h6:({...t})=>(0,Qe.jsx)(KS,{children:t.children}),blockquote:({...t})=>(0,Qe.jsx)($S,{children:t.children}),ul:({...t})=>(0,Qe.jsx)(YS,{children:t.children}),li:({...t})=>(0,Qe.jsx)(ZS,{children:t.children}),th:({...t})=>(0,Qe.jsx)(QS,{children:t.children}),td:({...t})=>(0,Qe.jsx)(XS,{children:t.children}),pre:({...t})=>(0,Qe.jsx)(SW,{children:t.children}),code:({...t})=>(0,Qe.jsx)(CW,{children:t.children})},children:e}),ep=({content:e})=>(0,Qe.jsx)(Ud,{remarkPlugins:[Pm],components:{p:({...r})=>(0,Qe.jsx)(TW,{children:r.children}),a:({...r})=>(0,Qe.jsx)(_m,{onClick:o=>{window.open(r.href,"_blank"),o.stopPropagation()},as:"a",children:r.children}),h1:({...r})=>(0,Qe.jsx)(WS,{children:r.children}),h2:({...r})=>(0,Qe.jsx)(qS,{children:r.children}),h3:({...r})=>(0,Qe.jsx)(GS,{children:r.children}),h4:({...r})=>(0,Qe.jsx)(zS,{children:r.children}),h5:({...r})=>(0,Qe.jsx)(jS,{children:r.children}),h6:({...r})=>(0,Qe.jsx)(KS,{children:r.children}),blockquote:({...r})=>(0,Qe.jsx)($S,{children:r.children}),ul:({...r})=>(0,Qe.jsx)(YS,{children:r.children}),li:({...r})=>(0,Qe.jsx)(ZS,{children:r.children}),th:({...r})=>(0,Qe.jsx)(QS,{children:r.children}),td:({...r})=>(0,Qe.jsx)(XS,{children:r.children})},children:(r=>{if(!r)return r;try{return JSON.parse(`"${r}"`)}catch{return r}})(e)}),yW=({content:e})=>(0,Qe.jsx)(Ud,{remarkPlugins:[Pm],components:{a:({...t})=>(0,Qe.jsx)(hW,{onClick:r=>{window.open(t.href,"_blank"),r.stopPropagation()},as:"a",children:t.children})},children:e});var JS=require("react/jsx-runtime");function fge({title:e,onClick:t,placement:r,children:o,fontSize:a,fontWeight:n=400,variant:i="standard",bgColor:l="#141414",componentsProps:s={},...u}){return(0,JS.jsx)(tr,{enterTouchDelay:0,leaveTouchDelay:2e3,componentsProps:bW.default.merge({tooltip:{sx:{background:l,color:Xe,maxWidth:"600px",fontSize:a||(i==="standard"?"1rem":"0.75rem"),fontWeight:{fontWeight:n},borderRadius:"0.5rem",padding:i==="standard"?"0.9rem":"0.5rem 0.75rem",boxShadow:"rgba(0, 0, 0, 0.6) 0px 4px 10px, rgba(0, 0, 0, 0.5) 0px 2px 4px"}},popper:{sx:{zIndex:9999999999,opacity:"1"}},arrow:{sx:{color:l}}},s),title:typeof e=="string"?(0,JS.jsx)(ep,{content:e}):e,placement:r,arrow:!0,onClick:t,...u,children:o})}var ge=fge;var o3=require("react/jsx-runtime"),dge=({helpText:e,style:t={},...r})=>(0,o3.jsx)(ge,{title:e,...r,children:(0,o3.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",...t},children:(0,o3.jsx)(J2,{...Co})})}),Ui=dge;var wr=require("react/jsx-runtime"),vW=(0,y.styled)(Kt)(({theme:e,borderColor:t})=>({width:e.spacing(4),height:e.spacing(4),cursor:"pointer",border:`1.5px solid ${t||e.palette.common.white} !important`})),pge=(0,y.styled)("div")(({theme:e})=>({width:e.spacing(4.5),height:e.spacing(4.5),border:`1.5px solid ${e.palette.common.white}`,borderRadius:"50%",background:w2,display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"-10px",zIndex:0,"&:hover":{cursor:"pointer"}})),mge=(0,y.styled)("div")({display:"flex",alignItems:"center",padding:"5px 15px 5px 10px","&:hover":{cursor:"pointer",background:"#cecece80 !important"}}),cge=(0,y.styled)(z)({marginLeft:"10px"}),xge=(0,y.styled)(zf)(()=>({"& .MuiPopover-paper":{marginTop:"10px",maxHeight:"331px"}})),hge=({users:e,providerUrl:t,onOpenWorkspace:r})=>{let[o,a]=(0,wW.useState)(null),n=d=>{window.open(d,"_blank","noreferrer")},i=d=>{a(d.currentTarget)},l=()=>{a(null)},s=Object.entries(e).length,u=4,f=(0,y.useTheme)();return(0,wr.jsxs)(c2,{max:u+1,children:[Object.entries(e).slice(0,u).map(([d,p])=>(0,wr.jsx)(ge,{componentsProps:{tooltip:{sx:{background:f.palette.background.paper,color:f.palette.text.primary,boxShadow:f.shadows[4]}},arrow:{sx:{color:f.palette.background.paper}}},title:(0,wr.jsxs)("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column"},children:[(0,wr.jsx)(z,{style:{display:"flex",justifyContent:"center",flexDirection:"column",margin:"auto",fontSize:"1rem"},children:p.name}),(0,wr.jsx)(Po,{}),(0,wr.jsx)(Me,{size:"small",variant:"outlined",onClick:r,style:{fontSize:"1rem",padding:"2px 8px",minWidth:"auto",marginTop:"8px"},children:"Open Recents"})]}),arrow:!0,children:(0,wr.jsx)(vW,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"},onClick:()=>n(`${t}/user/${p.user_id}`)},d)},d)),s>u&&(0,wr.jsxs)(wr.Fragment,{children:[(0,wr.jsx)(pge,{onClick:i,"aria-describedby":"user-popover",children:o?(0,wr.jsx)(Zo,{fill:f.palette.common.white,...Co,style:{marginLeft:"4px"}}):(0,wr.jsx)(z,{variant:"body2",style:{color:f.palette.common.white,fontSize:"12px"},children:`+${s-u}`})}),(0,wr.jsx)(xge,{id:"user-popover",open:!!o,anchorEl:o,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:Object.entries(e).slice(u,s).map(([d,p])=>(0,wr.jsxs)(mge,{onClick:()=>n(`${t}/user/${p.user_id}`),children:[(0,wr.jsx)(vW,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"}}),(0,wr.jsx)(cge,{variant:"body1",children:p.name})]},d))})]})]})},eC=hge;var tC=require("react/jsx-runtime");function gge({tooltip:e,tooltipPlacement:t="top",variant:r="filled",label:o,icon:a,onClick:n,onDelete:i,style:l,...s}){return(0,tC.jsx)(ge,{title:e,placement:t,children:(0,tC.jsx)(Ht,{sx:{paddingY:"10px",padding:"5px 6px !important",color:"black",fontSize:"14px",textTransform:"uppercase",fontWeight:400,height:"unset",borderRadius:"100px",border:"0.5px solid #51636B",background:"white",maxWidth:"230px"},variant:r,label:o,onClick:n,onDelete:i,icon:a,style:l,...s})})}var rC=gge;var oC=require("react");var bo=require("react/jsx-runtime"),Tge=({zoomEffect:e=!1,imgURL:t,type:r,width:o,height:a,style:n={}})=>{let[i,l]=(0,oC.useState)(!1),[s,u]=(0,oC.useState)(!1),f=()=>{e&&u(!0)},d=()=>{u(!1)},p=({type:m})=>m.type==="filter"?(0,bo.jsx)(a5,{width:o,height:a,style:n}):(0,bo.jsx)(rn,{width:o,height:a,style:n});return(0,bo.jsx)(bo.Fragment,{children:t&&t.length>0?(0,bo.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:i?(0,bo.jsx)(p,{type:r}):(0,bo.jsxs)(bo.Fragment,{children:[(0,bo.jsx)("img",{src:t[0],alt:"Design SnapShot",loading:"lazy",onClick:f,onError:()=>l(!0),style:{cursor:"pointer",width:"100%",height:"100%",objectFit:"cover"}}),(0,bo.jsx)(xa,{open:s,onClose:d,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"hidden",maxWidth:"60vw"}},children:(0,bo.jsx)("img",{src:t[0],alt:"Zoomed Design SnapShot",style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})}):(0,bo.jsx)(p,{type:r})})},Ru=Tge;var l3=require("react");var RW=G(require("js-yaml")),Sge=async(e,t=!0,r)=>new Promise(o=>{let a=new Image;t&&!e.startsWith("http")?a.src=(r?r():"")+e:a.src=e,a.onload=()=>{o(!0)},a.onerror=()=>{o(!1)}}),Cge=async(e,t,r)=>{let o=[];for(let a of e){let n=`${t}/${a.toLowerCase()}/${r}/${a.toLowerCase()}-color.svg`;await Sge(n)&&o.push(a)}return o},EW=e=>{try{return RW.default.load(e)?.version||aC}catch(t){return console.error("Failed to parse pattern file to get version:",t),aC}},OW=async({technologies:e,basePath:t="",subBasePath:r="",setAvailableTechnologies:o})=>{let a=await Cge(e,t,r);o(a)},aC="0.0.0",a3=e=>{switch(e.visibility){case"published":return e?.catalog_data?.published_version||aC;case"public":case"private":return EW(e.pattern_file);default:return EW(e.pattern_file)}};var Ye=require("@mui/material");var AW=(0,Ye.styled)("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px",zIndex:10})),PW=(0,Ye.styled)("div")(()=>({color:"#eee",fontSize:"0.875rem",lineHeight:"1.5",fontWeight:"600",borderBottom:"1px solid rgba(231, 239, 243, 0.40)"})),_W=(0,Ye.styled)("div")(()=>({color:"#eee",overflow:"hidden",fontSize:"14px",lineHeight:"24px",fontWeight:"400",marginTop:".8rem"})),kW=(0,Ye.styled)("div")(({catalogClassName:e,theme:t})=>({font:"bold 10px sans-serif",WebkitTransform:"rotate(-45deg)",textAlign:"center",transform:"rotate(-45deg)",position:"relative",padding:"4px 0",top:"15px",left:"-30px",width:"120px",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",backgroundColor:{community:I2.main,official:t.palette.background.cta?.default||"#EBC017",verified:t.palette.background.brand?.default||"#00B39F"}[e],color:e==="official"?t.palette.common.black:t.palette.common.white})),nC=(0,Ye.styled)("div")(({shouldFlip:e,isDetailed:t,outerStyles:r,theme:o})=>({position:"relative",borderRadius:"1rem",textAlign:"center",transformStyle:"preserve-3d",display:"block",perspective:"1000px",transition:"all .9s ease-out",...e&&{"&:hover":{cursor:"pointer","& .innerCard":{transform:"rotateY(180deg)"}}},...t&&{[o.breakpoints.down("lg")]:{height:"16.75rem"}},...r})),iC=(0,Ye.styled)("div")(({shouldFlip:e,isDetailed:t})=>({position:"relative",width:"100%",height:"100%",textAlign:"center",transition:"transform 0.6s",...e&&{transformOrigin:"50% 50%",transformStyle:"preserve-3d"},...t&&{boxShadow:"0 4px 8px 0 rgba(0,0,0,0.2)",borderRadius:"0.9375rem"}})),IW=(0,Ye.styled)("span")(({theme:e})=>({position:"absolute",top:"0",right:"0",minWidth:"3rem",padding:"0 0.75rem",fontSize:"0.875rem",textTransform:"capitalize",background:e.palette.background.brand?.default,color:e.palette.background.constant?.white,borderRadius:"0 1rem 0 2rem",zIndex:5})),MW=(0,Ye.styled)("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.mode==="light"?Ta:Sa,fontWeight:"600"})),LW=(0,Ye.styled)(Ye.Typography)(({theme:e,hasRibbon:t})=>({fontWeight:"bold",textTransform:"capitalize",color:e.palette.text.default,fontSize:"1.125rem",padding:"0rem 1rem",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"center",width:"100%",margin:t?"3.5rem 0 1.59rem 0":"2rem 0 1.59rem 0",fontFamily:"inherit",...t&&{paddingLeft:"1.5rem"}})),DW=(0,Ye.styled)("div")(({isDetailed:e,theme:t})=>({display:"flex",justifyContent:"space-around",fontSize:"0.2rem",color:t.palette.mode==="light"?"rgba(26, 26, 26, .8)":t.palette.text.default,padding:"0.9rem 0.1rem",background:t.palette.mode==="light"?"#E7EFF3":Ta,...e&&{position:"absolute",bottom:"0px"},...!e&&{marginTop:"1.2rem"},borderRadius:"0 0 0.9375rem 0.9375rem",width:"100%"})),FW=(0,Ye.styled)("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),n3=(0,Ye.styled)("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),Qit=(0,Ye.styled)("div")(({theme:e})=>({background:e.palette.background.surfaces,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"})),Xit=(0,Ye.styled)("div")(({theme:e})=>({display:"inline-block",backgroundColor:e.palette.background.supplementary,color:e.palette.text.constant?.white,borderRadius:"4px",fontSize:"0.75rem",fontWeight:"bold",margin:"5px 0",padding:"2px 5px",maxWidth:"fit-content"})),NW=(0,Ye.styled)("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.75",color:e.palette.text.constant?.white,position:"absolute",bottom:"16px",left:"16px",borderRadius:"4px",background:e.palette.background.supplementary,justifyContent:"center"})),BW=(0,Ye.styled)("p")(({theme:e})=>({fontSize:"0.75rem",margin:"0",padding:"0.25rem .5rem",lineHeight:"1.5",textTransform:"lowercase",fontWeight:"600",borderRadius:"4.05px",color:e.palette.text.constant?.white})),Jit=(0,Ye.styled)("div")(()=>({perspective:"1000px","&:hover .flipper":{transform:"rotateY(-180deg)"}})),elt=(0,Ye.styled)("div")(()=>({transition:"0.6s",transformStyle:"preserve-3d",position:"relative"})),yge=(0,Ye.styled)("div")(()=>({backfaceVisibility:"hidden",position:"absolute",top:0,left:0,width:"100%",height:"100%"})),tlt=(0,Ye.styled)(yge)(()=>({zIndex:2,transform:"rotateY(0deg)"})),rlt=(0,Ye.styled)("div")(()=>({transform:"rotateY(-180deg)",color:"#fff",display:"inline-flex",flexDirection:"column",padding:"16px",height:"100%",width:"100%",position:"relative",bottom:0,left:0,backfaceVisibility:"hidden"})),olt=(0,Ye.styled)("div")(({theme:e})=>({position:"absolute",background:`linear-gradient(to bottom right, black 40%, ${e.palette.background.brand?.default})`,width:"100%",top:0,left:0,display:"flex",flexDirection:"column",alignItems:"left",padding:"16px",boxShadow:"2px 2px 3px 0px black",borderRadius:"1rem"})),HW=(0,Ye.styled)("div")({height:"max-content",display:"flex",marginTop:"1.2rem",flexDirection:"row",padding:"0rem 1rem",justifyContent:"flex-start",alignItems:"center","@media (max-width:1200px)":{height:"max-content"}}),VW=(0,Ye.styled)("div")(()=>({display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",gap:"1rem",alignItems:"flex-start",background:"rgba(231, 239, 243, 0.40)",borderRadius:"0.25rem",padding:"0.5rem 1rem",alignSelf:"stretch"})),alt=(0,Ye.styled)("div")({display:"flex",alignItems:"center",color:"#fff",margin:"20px 0"}),UW=(0,Ye.styled)("div")(({isCatalog:e})=>({boxShadow:"2px 2px 3px 0px rgba(26, 26, 26, 1)",position:"absolute",width:"100%",height:"100%",WebkitBackfaceVisibility:"hidden",borderRadius:"0.9375rem",backfaceVisibility:"hidden",color:"white",transform:"rotateY(180deg)",...e&&{background:"linear-gradient(335deg, rgba(0, 179, 159, 0.80) -13.6%, rgba(0, 0, 0, 0.68) 66.8%), radial-gradient(3970.04% 147.22% at 47.5% 100%, #000 0%, #395357 100%)"},...!e&&{background:"linear-gradient(250deg, #477e96 0%, #00b39f 35%, rgb(60, 73, 79) 100%)"}})),i3=e=>{let t=`linear-gradient(to left bottom, ${p1}, ${f1},white, white, white, white, white, white, white, white, ${p1}, ${f1})`,r=`linear-gradient(to right top, ${m1}, ${Le[30]}, ${Le[20]}, ${Le[10]}, ${Le[10]}, ${Le[10]}, ${Le[10]}, ${Le[10]}, ${Le[10]}, ${J[20]}, ${J[10]}, black)`;return e?t:r},lC=(0,Ye.styled)("div")(({shouldFlip:e,isDetailed:t,theme:r})=>{let o=r.palette.mode==="light",a=i3(o),n=`2px 2px 3px 0px ${r.palette.background.brand?.default}`;return{position:"relative",zIndex:1,...e&&{position:"absolute",boxShadow:n,background:a},...t&&{boxShadow:n,background:a},width:"100%",height:"100%",WebkitBackfaceVisibility:"hidden",borderRadius:"0.9375rem",backfaceVisibility:"hidden"}}),WW=(0,Ye.styled)("div")(()=>({fontSize:"0.875rem",textTransform:"capitalize",color:"#eee",margin:"0rem",padding:"0.1rem",fontWeight:"400",lineHeight:"1.5"})),qW=(0,Ye.styled)("p")(()=>({fontSize:"0.876rem",margin:"0rem",lineHeight:"1.5",fontWeight:"400",color:"#eee"})),GW=(0,Ye.styled)("div")(()=>({height:"max-content",display:"flex",margin:"0",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start",fontWeight:"400",textAlign:"right",color:"#E7EFF3",textTransform:"capitalize","@media (max-width:1200px)":{height:"max-content"}})),zW=(0,Ye.styled)("div")(({theme:e})=>{let t=e.palette.mode==="light",r=i3(t),o=`2px 2px 3px 0px ${e.palette.background.brand?.default}`;return{background:r,boxShadow:o,textAlign:"center",borderRadius:"1rem",width:"15rem",height:"18rem",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",[e.breakpoints.down("lg")]:{height:"18.75rem"}}});var we=require("react/jsx-runtime"),Tlt=(0,y.styled)("a")(()=>({textDecoration:"none"}));var bge=({catalogClassName:e})=>e?(0,we.jsx)(AW,{children:(0,we.jsx)(kW,{catalogClassName:e,children:e})}):(0,we.jsx)(we.Fragment,{}),vge=({pattern:e,patternType:t,cardHeight:r="16.5rem",cardWidth:o="15rem",cardStyles:a,shouldFlip:n=!0,isDetailed:i=!0,cardTechnologies:l=!0,avatarUrl:s,UserName:u,children:f,basePath:d,subBasePath:p,getHostUrl:m,onCardClick:x})=>{let h={height:r,width:o,...a},g=(0,y.useTheme)(),T=e.catalog_data?.compatibility||[],R=5,[w,M]=(0,l3.useState)([]),I=a3(e);return(0,l3.useEffect)(()=>{OW({technologies:T,basePath:d,subBasePath:p,setAvailableTechnologies:M})},[]),n?(0,we.jsx)(nC,{shouldFlip:n,isDetailed:i,outerStyles:h,onClick:x,children:(0,we.jsxs)(iC,{shouldFlip:n,className:"innerCard",children:[(0,we.jsxs)(lC,{shouldFlip:n,isDetailed:i,children:[i&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(bge,{catalogClassName:e?.catalog_data?.content_class??""}),(0,we.jsx)(IW,{children:t}),(0,we.jsx)(LW,{hasRibbon:!!e?.catalog_data?.content_class,children:e.name})]}),(0,we.jsx)(n3,{children:(0,we.jsx)("div",{style:{background:g.palette.mode==="light"?"rgba(231, 239, 243, 0.4)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"},children:f})}),i&&(0,we.jsx)(DW,{isDetailed:i,children:[{Icon:ba,count:e.download_count},{Icon:id,count:e.clone_count},{Icon:yd,count:e.view_count},{Icon:cd,count:e.deployment_count},{Icon:Fn,count:e.share_count}].map(({Icon:C,count:v},P)=>(0,we.jsxs)(FW,{children:[(0,we.jsx)(C,{width:18,height:18,fill:g.palette.mode==="light"?Ta:Sa}),(0,we.jsx)(MW,{children:v})]},P))})]}),n&&(0,we.jsxs)(UW,{isCatalog:!0,children:[(0,we.jsxs)(HW,{children:[(0,we.jsx)(Kt,{alt:"Design Author",src:s,sx:{width:"32px",height:"32px",color:"#293B43"}}),(0,we.jsx)(GW,{children:u})]}),(0,we.jsx)(n3,{style:{marginTop:"0.7rem",gap:"5px"},children:l&&(0,we.jsxs)(VW,{children:[(0,we.jsx)(PW,{children:"Technologies"}),(0,we.jsx)(he,{container:!0,style:{gap:"4px",alignItems:"flex-start",flexWrap:"nowrap"},children:T.length<1||w.length<1?(0,we.jsx)(_W,{children:"No technologies"}):(0,we.jsxs)(we.Fragment,{children:[w.slice(0,R).map((C,v)=>{let P=(m?m():"")+`${d}/${C.toLowerCase()}/${p}/${C.toLowerCase()}-color.svg`;return(0,we.jsx)(he,{children:(0,we.jsx)(ge,{title:C.toLowerCase(),children:(0,we.jsx)("img",{height:"24px",width:"24px",alt:C.toLowerCase(),src:P})},v)},v)}),w.length>R&&(0,we.jsxs)(he,{sx:{padding:"0 8px 0 4px",borderRadius:"16px",border:"1px solid #C9DBE3",background:"#E7EFF3",color:"#3C494E",fontSize:"14px",lineHeight:"1.5",fontWeight:"600"},children:["+",w.length-R]})]})})]})}),i&&(0,we.jsx)(n3,{style:{marginTop:"20px"},children:(0,we.jsx)(he,{container:!0,style:{justifyContent:"space-between",alignItems:"center"},children:(0,we.jsxs)(he,{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,we.jsxs)("div",{style:{display:"flex",flexDirection:"row",gap:"0.2rem",alignItems:"center"},children:[(0,we.jsx)(EF,{width:18,height:18}),(0,we.jsx)(qW,{children:"Updated At"})]}),(0,we.jsxs)(WW,{children:[" ",new Date(e.updated_at.toString().slice(0,10)).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"})]})]})})}),I&&(0,we.jsx)(NW,{children:(0,we.jsxs)(BW,{children:["v",I]})})]})]})}):(0,we.jsx)(nC,{shouldFlip:n,isDetailed:i,outerStyles:h,children:(0,we.jsx)(iC,{shouldFlip:n,className:"innerCard",children:(0,we.jsx)(lC,{shouldFlip:n,isDetailed:i,children:f})})})},Ou=vge;var km=require("react/jsx-runtime"),wge=()=>{let e=(0,y.useTheme)();return(0,km.jsxs)(zW,{children:[(0,km.jsx)(Y2,{fill:e.palette.text.default,width:"100px",height:"100px"}),(0,km.jsx)("h3",{style:{color:e.palette.text.default},children:"No match found"})]})},sC=wge;var f3=G(require("react"));var jW=require("react/jsx-runtime");function Ege({children:e,open:t,anchorEl:r,placement:o="bottom-end",...a}){return(0,jW.jsx)(jf,{open:t,anchorEl:r,placement:o,...a,children:e})}var tp=Ege;var KW=G(require("mui-datatables")),rp=G(require("react"));var uC=require("react/jsx-runtime"),Rge=({width:e=V,height:t=U,...r})=>(0,uC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:e,height:t,fill:r.fill||"currentColor",...r,children:(0,uC.jsx)("path",{d:"M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"})}),fC=Rge;var Oge=({kind:e,model:t,color:r})=>!e||!t||!r?null:`/ui/public/static/img/meshmodels/${t}/${r}/${e.toLowerCase()}-${r}.svg`;var pC=G(require("moment"));var dC=require("react/jsx-runtime"),Wi=e=>(0,pC.default)(e).fromNow(),fs=e=>(0,pC.default)(e).format("ddd, MMM D, YYYY h:mm A"),ds=e=>{let t={year:"numeric",month:"short",day:"numeric"};return new Date(e).toLocaleDateString("en-US",t)},s3=({date:e})=>(0,dC.jsx)(ge,{title:fs(e),disableInteractive:!0,children:(0,dC.jsx)("div",{children:Wi(e)})});var Dt=require("react/jsx-runtime"),Vo=(0,y.styled)("div",{shouldForwardProp:e=>e!=="disabled"})(({disabled:e=!1})=>({width:"fit-content",cursor:e?"not-allowed":"pointer",opacity:e?"0.5":"1",display:"flex","& svg":{cursor:e?"not-allowed":"pointer"}})),op=({actionsList:e})=>{let[t,r]=rp.default.useState(null),[o,a]=rp.default.useState(!1),n=(0,y.useTheme)(),i=u=>{r(u.currentTarget)},l=()=>{r(null),a(!1)},s=u=>{u.type==="share-social"?a(!o):(u.onClick&&u.onClick(),l())};return(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)(Gt,{title:"View Actions",onClick:i,icon:(0,Dt.jsx)(fC,{fill:n.palette.icon.default}),arrow:!0}),(0,Dt.jsx)(Fl,{id:"basic-menu",anchorEl:t,open:!!t,onClose:l,sx:{"& .MuiPaper-root":{backgroundColor:n.palette.background.card}},children:e&&e.map((u,f)=>u.type==="share-social"?[(0,Dt.jsxs)(Mt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[(0,Dt.jsx)(Xa,{children:(0,Dt.jsx)(Fn,{width:24,height:24,fill:n.palette.text.primary})}),(0,Dt.jsx)(er,{sx:{color:n.palette.text.primary},children:u.title})]},`${f}-menuitem`),(0,Dt.jsx)(ca,{variant:"submenu",in:o,unmountOnExit:!0,children:u.customComponent},`${f}-collapse`)]:(0,Dt.jsx)(Vo,{disabled:u.disabled,children:(0,Dt.jsxs)(Mt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[(0,Dt.jsx)(Xa,{children:u.icon}),(0,Dt.jsx)(er,{sx:{color:n.palette.text.primary},children:u.title})]})},f))})]})},Age=({data:e,columns:t,options:r={},tableCols:o,updateCols:a,columnVisibility:n,rowsPerPageOptions:i=[10,25,50,100],...l})=>{let s={...r,print:!1,download:!1,search:!1,filter:!1,viewColumns:!1,rowsPerPageOptions:i,onViewColumnsChange:(d,p)=>{switch(p){case"add":{let m=t.find(x=>x.name===d);m&&m.options&&(m.options.display=!0,a&&a([...t]));break}case"remove":{let m=t.find(x=>x.name===d);m&&m.options&&(m.options.display=!1,a&&a([...t]));break}}}},u=(0,rp.useCallback)(()=>{t?.forEach(d=>{typeof d=="object"&&d!==null&&(d.options||(d.options={}),d.options.display=n&&n[d.name],["updated_at","created_at","deleted_at","last_login_time","joined_at","last_run","next_run"].includes(d.name)&&(d.options.customBodyRender=p=>{if(p==="NA"||p===null||p===void 0)return(0,Dt.jsx)(Dt.Fragment,{children:p});if(typeof p=="object"&&"Valid"in p){let m=p;return m.Valid&&m.Time?(0,Dt.jsx)(s3,{date:m.Time}):(0,Dt.jsx)(Dt.Fragment,{children:"NA"})}else return typeof p=="string"?(0,Dt.jsx)(s3,{date:p}):(0,Dt.jsx)(Dt.Fragment,{children:p})}))}),a&&a([...t])},[n,a]);return rp.default.useEffect(()=>{u()},[u]),(0,Dt.jsx)(KW.default,{columns:o??[],data:e||[],title:void 0,components:{ExpandButton:()=>"",Checkbox:Jr},options:{...s,elevation:0,enableNestedDataAccess:"."},...l})},Uo=Age;var u3=require("react/jsx-runtime");function Pge({children:e,title:t,onClick:r,icon:o,style:a,arrow:n=!0,disabled:i=!1,iconType:l,id:s,placement:u}){let f=(0,y.useTheme)();return(0,u3.jsx)(ge,{title:t,arrow:n,placement:u,id:s,children:(0,u3.jsx)(Vo,{disabled:i,children:(0,u3.jsx)(rt,{disabled:i,onClick:r,sx:{"&:hover":{"& svg":{fill:l==="delete"?f.palette.error.main:f.palette.primary.brand?.default}},...a},children:o||e})})})}var Gt=Pge;var Jo=require("react/jsx-runtime");function mC({columns:e,id:t,customToolsProps:r,style:o}){let[a,n]=f3.default.useState(!1),[i,l]=f3.default.useState(null),s=(0,y.useTheme)(),u=p=>{if(p.stopPropagation(),n(m=>!m),i){l(null);return}l(p.currentTarget)},f=()=>{l(null),n(!1)},d=(p,m)=>{p.stopPropagation(),r.setColumnVisibility(x=>({...x,[m]:p.target.checked}))};return(0,Jo.jsx)(f3.default.Fragment,{children:(0,Jo.jsxs)("div",{id:t,children:[(0,Jo.jsx)(Gt,{title:"View Columns",onClick:u,icon:(0,Jo.jsx)(U2,{fill:s.palette.icon.default}),arrow:!0}),(0,Jo.jsx)(tp,{style:{...o,zIndex:1350},open:!!i,anchorEl:i,placement:"bottom-end",modifiers:[{name:"flip",options:{enabled:!1}},{name:"preventOverflow",options:{enabled:!0,boundariesElement:"scrollParent"}}],children:(0,Jo.jsx)(K,{children:(0,Jo.jsx)(_n,{onClickAway:f,children:(0,Jo.jsx)("div",{children:(0,Jo.jsx)(Pr,{sx:{display:"flex",flexDirection:"column",padding:"1rem",boxShadow:a?"0px 4px 8px rgba(0, 0, 0, 0.2)":"none",background:s.palette.background.surfaces},children:e.map(p=>(0,Jo.jsx)(Ll,{control:(0,Jo.jsx)(Jr,{checked:r.columnVisibility[p.name],onChange:m=>d(m,p.name)}),label:p.label},p.name))})})})})})]})})}var fn=mC;var $W=require("react");var jn=require("react/jsx-runtime"),_ge=(0,y.styled)("figure")(({align:e})=>({margin:"1rem 0",textAlign:e,width:"100%"})),kge=(0,y.styled)("figcaption")(({align:e})=>({fontSize:"0.9rem",color:"#666",marginTop:"0.5rem",textAlign:e})),Ige=({src:e,alt:t,caption:r,align:o="left",...a})=>{let[n,i]=(0,$W.useState)(!1),l=()=>{i(!0)},s=()=>{i(!1)};return(0,jn.jsxs)(jn.Fragment,{children:[(0,jn.jsxs)(_ge,{align:o,children:[(0,jn.jsx)("img",{src:e,alt:t||r||"",loading:"lazy",onClick:l,...a,style:{cursor:"pointer",maxWidth:"100%",height:"auto",boxShadow:"rgba(149, 157, 165, 0.2) 0px 8px 24px",borderRadius:"15px",width:"50%"}}),r&&(0,jn.jsx)(kge,{align:o,children:r})]}),(0,jn.jsx)(xa,{open:n,onClose:s,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"auto",maxWidth:"100%"}},children:(0,jn.jsx)("img",{src:e,alt:t||r||"",onClick:s,style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})},cC=Ige;var tq=require("@mui/material");var YW=require("react/jsx-runtime");function Mge({children:e,...t}){return(0,YW.jsx)(Uf,{...t,children:e})}var Im=Mge;var ZW=require("react/jsx-runtime");function Lge({children:e,...t}){return(0,ZW.jsx)(kl,{...t,children:e})}var Mm=Lge;var Lm=require("@mui/material");var QW=(0,Lm.styled)("div")(({theme:e})=>{let t=e.palette.mode==="light"?td:Cr,r=e.palette.mode==="light"?NT:oL;return{display:"flex",justifyContent:"space-between",padding:"1rem",boxShadow:"inset 0px -1px 3px 0px rgba(0,0,0,0.2)",background:`linear-gradient(90deg, ${t}, ${r})`,filter:e.palette.mode==="light"?`progid:DXImageTransform.Microsoft.gradient(startColorstr='${td}',endColorstr='${NT}',GradientType=1)`:`progid:DXImageTransform.Microsoft.gradient(startColorstr='${c1}',GradientType=1)`}}),XW=(0,Lm.styled)("div")(()=>({zIndex:"100",borderRadius:"5px"})),JW=(0,Lm.styled)("div")(({theme:e})=>({padding:"1rem 1.5rem",display:"flex",justifyContent:"flex-end",backgroundColor:e.palette.mode==="light"?td:c1,boxShadow:"inset 0px 3px 5px 0px rgba(0,0,0,0.25)"})),eq=(0,Lm.styled)("div")(({theme:e})=>({padding:"2rem 1rem",backgroundColor:e.palette.mode==="light"?Xe:ed}));var Yr=require("react/jsx-runtime");function Dge({open:e,onClose:t,title:r,leftHeaderIcon:o,helpText:a,helpArea:n,actions:i,hideActions:l=!1,content:s,maxWidth:u="xs",...f}){return(0,Yr.jsx)(xa,{sx:{"& .MuiDialog-paper":{borderRadius:"10px"}},open:e,maxWidth:u,onClose:t,slots:{backdrop:tq.Backdrop},slotProps:{backdrop:{timeout:500}},...f,children:(0,Yr.jsxs)(XW,{children:[(0,Yr.jsxs)(QW,{children:[o&&(0,Yr.jsx)("div",{style:{display:"flex",alignItems:"center"},children:o}),r&&(0,Yr.jsx)(Yr.Fragment,{children:(0,Yr.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,Yr.jsx)(Ml,{children:r})})}),(0,Yr.jsx)("div",{style:{display:"flex",alignItems:"center"},children:a&&(0,Yr.jsx)("div",{children:n})})]}),(0,Yr.jsx)(Mm,{children:(0,Yr.jsx)(eq,{children:s})}),!l&&(0,Yr.jsx)(Im,{children:(0,Yr.jsx)(JW,{children:i})})]})})}var xC=Dge;var hC=require("react/jsx-runtime");function Fge({children:e,style:t,...r}){return(0,hC.jsx)(Ml,{sx:t,...r,children:(0,hC.jsx)(z,{sx:{flexGrow:1,fontSize:"1.25rem",textAlign:"center"},variant:"h6",children:e})})}var Dm=Fge;var ps=require("react/jsx-runtime");function Nge({icon:e,message:t,pointerLabel:r,poiner:o=!1}){return(0,ps.jsxs)("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",minHeight:"50vh"},children:[o&&(0,ps.jsxs)(he,{style:{display:"flex",width:"100%",padding:"0 40px"},children:[(0,ps.jsx)(o5,{}),(0,ps.jsx)(z,{sx:{fontSize:24,color:"#808080",px:5,py:2,lineHeight:1.5,letterSpacing:"0.15px",display:"flex",alignItems:"flex-end",marginBottom:"-2rem"},children:r})]}),(0,ps.jsxs)(he,{style:{marginTop:"120px"},children:[e,(0,ps.jsx)(z,{sx:{fontSize:"1.5rem",color:"#808080",px:5,py:2,lineHeight:1},children:t})]})]})}var gC=Nge;var d3=require("@mui/material");var dn=require("react"),Bge=(0,dn.createContext)(null),TC={didCatch:!1,error:null},Fm=class extends dn.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=TC}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){let{error:t}=this.state;if(t!==null){for(var r,o,a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];(r=(o=this.props).onReset)===null||r===void 0||r.call(o,{args:n,reason:"imperative-api"}),this.setState(TC)}}componentDidCatch(t,r){var o,a;(o=(a=this.props).onError)===null||o===void 0||o.call(a,t,r)}componentDidUpdate(t,r){let{didCatch:o}=this.state,{resetKeys:a}=this.props;if(o&&r.error!==null&&Hge(t.resetKeys,a)){var n,i;(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(TC)}}render(){let{children:t,fallbackRender:r,FallbackComponent:o,fallback:a}=this.props,{didCatch:n,error:i}=this.state,l=t;if(n){let s={error:i,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")l=r(s);else if(o)l=(0,dn.createElement)(o,s);else if(a!==void 0)l=a;else throw i}return(0,dn.createElement)(Bge.Provider,{value:{didCatch:n,error:i,resetErrorBoundary:this.resetErrorBoundary}},l)}};function Hge(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,o)=>!Object.is(r,t[o]))}var ir=require("react/jsx-runtime"),Vge=(0,d3.styled)(z)(({theme:e})=>({color:e.palette.text.default,fontWeight:"normal",marginTop:"2px",marginBottom:"2px",fontSize:"1.15rem"})),rq=(0,d3.styled)(_o)(({theme:e})=>({color:e.palette.border.brand,textDecoration:"underline",cursor:"pointer"})),Uge=(0,d3.styled)("div")(({theme:e})=>({display:"flex",flexDirection:"column",backgroundColor:e.palette.background.code,color:e.palette.text.tertiary,padding:".85rem",borderRadius:".2rem",marginBlock:".5rem"}));function p3({error:e,children:t,showPackageInfo:r,version:o}){return(0,ir.jsxs)("div",{role:"alert",children:[(0,ir.jsx)("h2",{children:"Uh-oh!\u{1F614} Please pardon the mesh."}),(0,ir.jsxs)(Uge,{children:[(0,ir.jsxs)("code",{children:[(0,ir.jsx)("strong",{children:"Error: "}),e.message]}),(0,ir.jsx)("br",{}),r&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("strong",{children:"Version:"})," ",o]})]}),(0,ir.jsxs)(Vge,{children:["We apologize for the inconvenience. The issue may be on our end. If troubleshooting doesn't work, please check out our support channels"," ",(0,ir.jsx)(rq,{href:"https://discuss.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Discuss Forum"})," "," or ",(0,ir.jsx)(rq,{href:"https://slack.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Slack"})]}),(0,ir.jsx)(K,{children:t})]})}var oq=(e,t)=>{let r=window.location.href,o=new Date().toLocaleString();console.log("Error Caught Inside Boundary --reportError",e,"Info",t,"Page URL:",r,"Timestamp:",o)},lo=({customFallback:e,children:t,onErrorCaught:r})=>{let o=window.location.href,a=new Date().toLocaleString();return(0,ir.jsx)(Fm,{FallbackComponent:e||(i=>(0,ir.jsx)(p3,{...i,pageUrl:o,timestamp:a})),onError:(i,l)=>{r?.(i.message),oq(i,l)},children:t})},SC=({Component:e,errorHandlingProps:t={children:null}})=>(0,ir.jsx)(lo,{...t,children:(0,ir.jsx)(e,{})}),CC=({Component:e})=>(0,ir.jsx)(Fm,{FallbackComponent:()=>null,onError:oq,children:(0,ir.jsx)(e,{})});var m3=G(require("@mui/material/Typography")),ip=require("react");var ea=require("@mui/material"),Au=require("react");var aq=require("react");var qi=require("react/jsx-runtime");function Wge({content:e,fontSize:t,fontWeight:r=400,variant:o="standard",bgColor:a="#141414",icon:n=(0,qi.jsx)(j2,{fontSize:"small"}),...i}){let[l,s]=(0,aq.useState)(null);return(0,qi.jsxs)(qi.Fragment,{children:[(0,qi.jsx)(rt,{size:"small",onClick:p=>{s(p.currentTarget)},sx:{color:"inherit",padding:"2px",verticalAlign:"middle"},children:n}),(0,qi.jsx)(zf,{open:!!l,anchorEl:l,onClose:()=>{s(null)},disablePortal:!0,container:l?.ownerDocument?.body,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},PaperProps:{sx:{background:a,zIndex:1501,opacity:"1",color:Xe,maxWidth:"500px",fontSize:t||(o==="standard"?"1rem":"0.75rem"),fontWeight:r,borderRadius:"0.5rem",padding:o==="standard"?"0.9rem":"0.5rem 0.75rem",boxShadow:"rgba(0, 0, 0, 0.6) 0px 4px 10px, rgba(0, 0, 0, 0.5) 0px 2px 4px"}},...i,children:typeof e=="string"?(0,qi.jsx)(ep,{content:e}):e})]})}var yC=Wge;var Zr=require("react/jsx-runtime"),Pu=(0,ea.styled)(rt)`
60
60
  && {
61
61
  & svg {
62
62
  fill: #fff;
package/dist/index.mjs CHANGED
@@ -56,7 +56,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var se=le(y,R,L,F,q+"."+
56
56
  `)&&u.type==="html"&&(n[n.length-1]=n[n.length-1].replace(/(\r?\n|\r)$/," "),l=" ",s=t.createTracker(r),s.move(n.join(""))),n.push(s.move(t.handle(u,e,t,{...s.current(),before:l,after:f}))),l=n[n.length-1].slice(-1)}return o.pop(),n.join("")}var uTe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];tM.peek=pTe;var L8={canContainEols:["delete"],enter:{strikethrough:fTe},exit:{strikethrough:dTe}},D8={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:uTe}],handlers:{delete:tM}};function fTe(e){this.enter({type:"delete",children:[]},e)}function dTe(e){this.exit(e)}function tM(e,t,r,o){let a=hs(o),n=r.enter("strikethrough"),i=a.move("~~");return i+=l2(e,r,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),n(),i}function pTe(){return"~"}F8.peek=mTe;function F8(e,t,r){let o=e.value||"",a="`",n=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(o);)a+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++n<r.unsafe.length;){let i=r.unsafe[n],l=i2(i),s;if(i.atBreak)for(;s=l.exec(o);){let u=s.index;o.charCodeAt(u)===10&&o.charCodeAt(u-1)===13&&u--,o=o.slice(0,u)+" "+o.slice(s.index+1)}}return a+o+a}function mTe(){return"`"}function cTe(e){return e.length}function oM(e,t){let r=t||{},o=(r.align||[]).concat(),a=r.stringLength||cTe,n=[],i=[],l=[],s=[],u=0,f=-1;for(;++f<e.length;){let h=[],g=[],T=-1;for(e[f].length>u&&(u=e[f].length);++T<e[f].length;){let E=xTe(e[f][T]);if(r.alignDelimiters!==!1){let v=a(E);g[T]=v,(s[T]===void 0||v>s[T])&&(s[T]=v)}h.push(E)}i[f]=h,l[f]=g}let d=-1;if(typeof o=="object"&&"length"in o)for(;++d<u;)n[d]=rM(o[d]);else{let h=rM(o);for(;++d<u;)n[d]=h}d=-1;let p=[],m=[];for(;++d<u;){let h=n[d],g="",T="";h===99?(g=":",T=":"):h===108?g=":":h===114&&(T=":");let E=r.alignDelimiters===!1?1:Math.max(1,s[d]-g.length-T.length),v=g+"-".repeat(E)+T;r.alignDelimiters!==!1&&(E=g.length+E+T.length,E>s[d]&&(s[d]=E),m[d]=E),p[d]=v}i.splice(1,0,p),l.splice(1,0,m),f=-1;let x=[];for(;++f<i.length;){let h=i[f],g=l[f];d=-1;let T=[];for(;++d<u;){let E=h[d]||"",v="",I="";if(r.alignDelimiters!==!1){let k=s[d]-(g[d]||0),C=n[d];C===114?v=" ".repeat(k):C===99?k%2?(v=" ".repeat(k/2+.5),I=" ".repeat(k/2-.5)):(v=" ".repeat(k/2),I=v):I=" ".repeat(k)}r.delimiterStart!==!1&&!d&&T.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&E==="")&&(r.delimiterStart!==!1||d)&&T.push(" "),r.alignDelimiters!==!1&&T.push(v),T.push(E),r.alignDelimiters!==!1&&T.push(I),r.padding!==!1&&T.push(" "),(r.delimiterEnd!==!1||d!==u-1)&&T.push("|")}x.push(r.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return x.join(`
57
57
  `)}function xTe(e){return e==null?"":String(e)}function rM(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var B8={enter:{table:hTe,tableData:aM,tableHeader:aM,tableRow:TTe},exit:{codeText:STe,table:gTe,tableData:N8,tableHeader:N8,tableRow:N8}};function hTe(e){let t=e._align;this.enter({type:"table",align:t.map(r=>r==="none"?null:r),children:[]},e),this.setData("inTable",!0)}function gTe(e){this.exit(e),this.setData("inTable")}function TTe(e){this.enter({type:"tableRow",children:[]},e)}function N8(e){this.exit(e)}function aM(e){this.enter({type:"tableCell",children:[]},e)}function STe(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,CTe));let r=this.stack[this.stack.length-1];r.value=t,this.exit(e)}function CTe(e,t){return t==="|"?t:e}function H8(e){let t=e||{},r=t.tableCellPadding,o=t.tablePipeAlign,a=t.stringLength,n=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
58
58
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:i,tableRow:l,tableCell:s,inlineCode:p}};function i(m,x,h,g){return u(f(m,h,g),m.align)}function l(m,x,h,g){let T=d(m,h,g),E=u([T]);return E.slice(0,E.indexOf(`
59
- `))}function s(m,x,h,g){let T=h.enter("tableCell"),E=h.enter("phrasing"),v=l2(m,h,{...g,before:n,after:n});return E(),T(),v}function u(m,x){return oM(m,{align:x,alignDelimiters:o,padding:r,stringLength:a})}function f(m,x,h){let g=m.children,T=-1,E=[],v=x.enter("table");for(;++T<g.length;)E[T]=d(g[T],x,h);return v(),E}function d(m,x,h){let g=m.children,T=-1,E=[],v=x.enter("tableRow");for(;++T<g.length;)E[T]=s(g[T],m,x,h);return v(),E}function p(m,x,h){let g=F8(m,x,h);return h.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function nM(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function iM(e){let t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function lM(e,t,r,o){let a=iM(r),n=r.bulletCurrent||nM(r);t&&t.type==="list"&&t.ordered&&(n=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+n);let i=n.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);let l=r.createTracker(o);l.move(n+" ".repeat(i-n.length)),l.shift(i);let s=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,l.current()),f);return s(),u;function f(d,p,m){return p?(m?"":" ".repeat(i))+d:(m?n:n+" ".repeat(i-n.length))+d}}var V8={exit:{taskListCheckValueChecked:sM,taskListCheckValueUnchecked:sM,paragraph:yTe}},U8={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:bTe}};function sM(e){let t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function yTe(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1],o=r.children[0];if(o&&o.type==="text"){let a=t.children,n=-1,i;for(;++n<a.length;){let l=a[n];if(l.type==="paragraph"){i=l;break}}i===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function bTe(e,t,r,o){let a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=hs(o);n&&l.move(i);let s=lM(e,t,r,{...o,...l.current()});return n&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+i}}function W8(){return[A8,I8(),L8,B8,V8]}function q8(e){return{extensions:[P8,M8(),D8,H8(e),U8]}}function _p(e={}){let t=this.data();r("micromarkExtensions",zI(e)),r("fromMarkdownExtensions",W8()),r("toMarkdownExtensions",q8(e));function r(o,a){(t[o]?t[o]:t[o]=[]).push(a)}}import{styled as vr}from"@mui/material";var s2=vr("a")(({theme:e})=>({color:e.palette.background.brand?.default,textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer",fontFamily:"inherit"})),uM=vr("a")(()=>({textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer"})),fM=vr("p")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),dM=vr("p")(({theme:e})=>({color:e.palette.text.constant?.white||Yw.inverse,marginBlock:"0px",fontFamily:"inherit"})),G8=vr("h1")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),z8=vr("h2")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),j8=vr("h3")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),K8=vr("h4")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),$8=vr("h5")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),Y8=vr("h6")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),Z8=vr("blockquote")(({theme:e})=>({color:e.palette.text.default,borderLeft:`2px solid ${e.palette.text.brand}`,backgroundColor:e.palette.background.tertiary})),Q8=vr("ul")(({theme:e})=>({color:e.palette.text.default})),X8=vr("li")(({theme:e})=>({color:e.palette.text.default,...e.typography.textB1Regular,fontFamily:"inherit"})),J8=vr("th")(({theme:e})=>({color:e.palette.text.default,...e.typography.textH3Medium,marginBlock:"0px",fontFamily:"inherit"})),e6=vr("td")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),pM=vr("pre")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",fontFamily:"inherit"})),mM=vr("code")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",padding:"1.5px",paddingInline:"5px",fontFamily:"inherit",borderRadius:3}));import{jsx as Ve}from"react/jsx-runtime";var pf=({content:e})=>Ve(Xu,{remarkPlugins:[_p],rehypePlugins:[c8],components:{p:({...t})=>Ve(fM,{children:t.children}),a:({...t})=>Ve(s2,{onClick:r=>{r.preventDefault(),window.open(t.href,"_blank")},href:t.href,children:t.children}),h1:({...t})=>Ve(G8,{children:t.children}),h2:({...t})=>Ve(z8,{children:t.children}),h3:({...t})=>Ve(j8,{children:t.children}),h4:({...t})=>Ve(K8,{children:t.children}),h5:({...t})=>Ve($8,{children:t.children}),h6:({...t})=>Ve(Y8,{children:t.children}),blockquote:({...t})=>Ve(Z8,{children:t.children}),ul:({...t})=>Ve(Q8,{children:t.children}),li:({...t})=>Ve(X8,{children:t.children}),th:({...t})=>Ve(J8,{children:t.children}),td:({...t})=>Ve(e6,{children:t.children}),pre:({...t})=>Ve(pM,{children:t.children}),code:({...t})=>Ve(mM,{children:t.children})},children:e}),mf=({content:e})=>Ve(Xu,{remarkPlugins:[_p],components:{p:({...r})=>Ve(dM,{children:r.children}),a:({...r})=>Ve(s2,{onClick:o=>{window.open(r.href,"_blank"),o.stopPropagation()},as:"a",children:r.children}),h1:({...r})=>Ve(G8,{children:r.children}),h2:({...r})=>Ve(z8,{children:r.children}),h3:({...r})=>Ve(j8,{children:r.children}),h4:({...r})=>Ve(K8,{children:r.children}),h5:({...r})=>Ve($8,{children:r.children}),h6:({...r})=>Ve(Y8,{children:r.children}),blockquote:({...r})=>Ve(Z8,{children:r.children}),ul:({...r})=>Ve(Q8,{children:r.children}),li:({...r})=>Ve(X8,{children:r.children}),th:({...r})=>Ve(J8,{children:r.children}),td:({...r})=>Ve(e6,{children:r.children})},children:(r=>{if(!r)return r;try{return JSON.parse(`"${r}"`)}catch{return r}})(e)}),vTe=({content:e})=>Ve(Xu,{remarkPlugins:[_p],components:{a:({...t})=>Ve(uM,{onClick:r=>{window.open(t.href,"_blank"),r.stopPropagation()},as:"a",children:t.children})},children:e});import{jsx as cM}from"react/jsx-runtime";function ETe({title:e,onClick:t,placement:r,children:o,fontSize:a,fontWeight:n=400,variant:i="standard",bgColor:l="#141414",componentsProps:s={},...u}){return cM(Kt,{enterDelay:0,leaveDelay:1200,componentsProps:wTe.merge({tooltip:{sx:{background:l,color:Ue,maxWidth:"600px",fontSize:a||(i==="standard"?"1rem":"0.75rem"),fontWeight:{fontWeight:n},borderRadius:"0.5rem",padding:i==="standard"?"0.9rem":"0.5rem 0.75rem",boxShadow:"rgba(0, 0, 0, 0.6) 0px 4px 10px, rgba(0, 0, 0, 0.5) 0px 2px 4px"}},popper:{sx:{zIndex:9999999999,opacity:"1"}},arrow:{sx:{color:l}}},s),title:typeof e=="string"?cM(mf,{content:e}):e,placement:r,arrow:!0,onClick:t,...u,children:o})}var ge=ETe;import{jsx as t6}from"react/jsx-runtime";var RTe=({helpText:e,style:t={},...r})=>t6(ge,{title:e,...r,children:t6("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",...t},children:t6(H4,{...Gr})})}),rl=RTe;import{Fragment as MTe,jsx as Ca,jsxs as u2}from"react/jsx-runtime";var xM=D(Nt)(({theme:e,borderColor:t})=>({width:e.spacing(4),height:e.spacing(4),cursor:"pointer",border:`1.5px solid ${t||e.palette.common.white} !important`})),ATe=D("div")(({theme:e})=>({width:e.spacing(4.5),height:e.spacing(4.5),border:`1.5px solid ${e.palette.common.white}`,borderRadius:"50%",background:ox,display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"-10px",zIndex:0,"&:hover":{cursor:"pointer"}})),PTe=D("div")({display:"flex",alignItems:"center",padding:"5px 15px 5px 10px","&:hover":{cursor:"pointer",background:"#cecece80 !important"}}),_Te=D(G)({marginLeft:"10px"}),kTe=D(wd)(()=>({"& .MuiPopover-paper":{marginTop:"10px",maxHeight:"331px"}})),ITe=({users:e,providerUrl:t,onOpenWorkspace:r})=>{let[o,a]=OTe(null),n=d=>{window.open(d,"_blank","noreferrer")},i=d=>{a(d.currentTarget)},l=()=>{a(null)},s=Object.entries(e).length,u=4,f=te();return u2(j3,{max:u+1,children:[Object.entries(e).slice(0,u).map(([d,p])=>Ca(ge,{componentsProps:{tooltip:{sx:{background:f.palette.background.paper,color:f.palette.text.primary,boxShadow:f.shadows[4]}},arrow:{sx:{color:f.palette.background.paper}}},title:u2("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column"},children:[Ca(G,{style:{display:"flex",justifyContent:"center",flexDirection:"column",margin:"auto",fontSize:"1rem"},children:p.name}),Ca(go,{}),Ca(Oe,{size:"small",variant:"outlined",onClick:r,style:{fontSize:"1rem",padding:"2px 8px",minWidth:"auto",marginTop:"8px"},children:"Open Recents"})]}),arrow:!0,children:Ca(xM,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"},onClick:()=>n(`${t}/user/${p.user_id}`)},d)},d)),s>u&&u2(MTe,{children:[Ca(ATe,{onClick:i,"aria-describedby":"user-popover",children:o?Ca(yo,{fill:f.palette.common.white,...Gr,style:{marginLeft:"4px"}}):Ca(G,{variant:"body2",style:{color:f.palette.common.white,fontSize:"12px"},children:`+${s-u}`})}),Ca(kTe,{id:"user-popover",open:!!o,anchorEl:o,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:Object.entries(e).slice(u,s).map(([d,p])=>u2(PTe,{onClick:()=>n(`${t}/user/${p.user_id}`),children:[Ca(xM,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"}}),Ca(_Te,{variant:"body1",children:p.name})]},d))})]})]})},hM=ITe;import{jsx as gM}from"react/jsx-runtime";function LTe({tooltip:e,tooltipPlacement:t="top",variant:r="filled",label:o,icon:a,onClick:n,onDelete:i,style:l,...s}){return gM(ge,{title:e,placement:t,children:gM(bt,{sx:{paddingY:"10px",padding:"5px 6px !important",color:"black",fontSize:"14px",textTransform:"uppercase",fontWeight:400,height:"unset",borderRadius:"100px",border:"0.5px solid #51636B",background:"white",maxWidth:"230px"},variant:r,label:o,onClick:n,onDelete:i,icon:a,style:l,...s})})}var TM=LTe;import{useState as SM}from"react";import{Fragment as CM,jsx as Un,jsxs as FTe}from"react/jsx-runtime";var DTe=({zoomEffect:e=!1,imgURL:t,type:r,width:o,height:a,style:n={}})=>{let[i,l]=SM(!1),[s,u]=SM(!1),f=()=>{e&&u(!0)},d=()=>{u(!1)},p=({type:m})=>m.type==="filter"?Un(z4,{width:o,height:a,style:n}):Un(Ua,{width:o,height:a,style:n});return Un(CM,{children:t&&t.length>0?Un("div",{style:{width:"100%",height:"100%",position:"relative"},children:i?Un(p,{type:r}):FTe(CM,{children:[Un("img",{src:t[0],alt:"Design SnapShot",loading:"lazy",onClick:f,onError:()=>l(!0),style:{cursor:"pointer",width:"100%",height:"100%",objectFit:"cover"}}),Un(la,{open:s,onClose:d,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"hidden",maxWidth:"60vw"}},children:Un("img",{src:t[0],alt:"Zoomed Design SnapShot",style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})}):Un(p,{type:r})})},cf=DTe;import{useEffect as WTe,useState as qTe}from"react";import NTe from"js-yaml";var BTe=async(e,t=!0,r)=>new Promise(o=>{let a=new Image;t&&!e.startsWith("http")?a.src=(r?r():"")+e:a.src=e,a.onload=()=>{o(!0)},a.onerror=()=>{o(!1)}}),HTe=async(e,t,r)=>{let o=[];for(let a of e){let n=`${t}/${a.toLowerCase()}/${r}/${a.toLowerCase()}-color.svg`;await BTe(n)&&o.push(a)}return o},yM=e=>{try{return NTe.load(e)?.version||r6}catch(t){return console.error("Failed to parse pattern file to get version:",t),r6}},bM=async({technologies:e,basePath:t="",subBasePath:r="",setAvailableTechnologies:o})=>{let a=await HTe(e,t,r);o(a)},r6="0.0.0",f2=e=>{switch(e.visibility){case"published":return e?.catalog_data?.published_version||r6;case"public":case"private":return yM(e.pattern_file);default:return yM(e.pattern_file)}};import{styled as qe,Typography as VTe}from"@mui/material";var vM=qe("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px",zIndex:10})),wM=qe("div")(()=>({color:"#eee",fontSize:"0.875rem",lineHeight:"1.5",fontWeight:"600",borderBottom:"1px solid rgba(231, 239, 243, 0.40)"})),EM=qe("div")(()=>({color:"#eee",overflow:"hidden",fontSize:"14px",lineHeight:"24px",fontWeight:"400",marginTop:".8rem"})),RM=qe("div")(({catalogClassName:e,theme:t})=>({font:"bold 10px sans-serif",WebkitTransform:"rotate(-45deg)",textAlign:"center",transform:"rotate(-45deg)",position:"relative",padding:"4px 0",top:"15px",left:"-30px",width:"120px",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",backgroundColor:{community:m4.main,official:t.palette.background.cta?.default||"#EBC017",verified:t.palette.background.brand?.default||"#00B39F"}[e],color:e==="official"?t.palette.common.black:t.palette.common.white})),o6=qe("div")(({shouldFlip:e,isDetailed:t,outerStyles:r,theme:o})=>({position:"relative",borderRadius:"1rem",textAlign:"center",transformStyle:"preserve-3d",display:"block",perspective:"1000px",transition:"all .9s ease-out",...e&&{"&:hover":{cursor:"pointer","& .innerCard":{transform:"rotateY(180deg)"}}},...t&&{[o.breakpoints.down("lg")]:{height:"16.75rem"}},...r})),a6=qe("div")(({shouldFlip:e,isDetailed:t})=>({position:"relative",width:"100%",height:"100%",textAlign:"center",transition:"transform 0.6s",...e&&{transformOrigin:"50% 50%",transformStyle:"preserve-3d"},...t&&{boxShadow:"0 4px 8px 0 rgba(0,0,0,0.2)",borderRadius:"0.9375rem"}})),OM=qe("span")(({theme:e})=>({position:"absolute",top:"0",right:"0",minWidth:"3rem",padding:"0 0.75rem",fontSize:"0.875rem",textTransform:"capitalize",background:e.palette.background.brand?.default,color:e.palette.background.constant?.white,borderRadius:"0 1rem 0 2rem",zIndex:5})),AM=qe("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.mode==="light"?ua:No,fontWeight:"600"})),PM=qe(VTe)(({theme:e,hasRibbon:t})=>({fontWeight:"bold",textTransform:"capitalize",color:e.palette.text.default,fontSize:"1.125rem",padding:"0rem 1rem",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"center",width:"100%",margin:t?"3.5rem 0 1.59rem 0":"2rem 0 1.59rem 0",fontFamily:"inherit",...t&&{paddingLeft:"1.5rem"}})),_M=qe("div")(({isDetailed:e,theme:t})=>({display:"flex",justifyContent:"space-around",fontSize:"0.2rem",color:t.palette.mode==="light"?"rgba(26, 26, 26, .8)":t.palette.text.default,padding:"0.9rem 0.1rem",background:t.palette.mode==="light"?"#E7EFF3":ua,...e&&{position:"absolute",bottom:"0px"},...!e&&{marginTop:"1.2rem"},borderRadius:"0 0 0.9375rem 0.9375rem",width:"100%"})),kM=qe("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),d2=qe("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),J9t=qe("div")(({theme:e})=>({background:e.palette.background.surfaces,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"})),e3t=qe("div")(({theme:e})=>({display:"inline-block",backgroundColor:e.palette.background.supplementary,color:e.palette.text.constant?.white,borderRadius:"4px",fontSize:"0.75rem",fontWeight:"bold",margin:"5px 0",padding:"2px 5px",maxWidth:"fit-content"})),IM=qe("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.75",color:e.palette.text.constant?.white,position:"absolute",bottom:"16px",left:"16px",borderRadius:"4px",background:e.palette.background.supplementary,justifyContent:"center"})),MM=qe("p")(({theme:e})=>({fontSize:"0.75rem",margin:"0",padding:"0.25rem .5rem",lineHeight:"1.5",textTransform:"lowercase",fontWeight:"600",borderRadius:"4.05px",color:e.palette.text.constant?.white})),t3t=qe("div")(()=>({perspective:"1000px","&:hover .flipper":{transform:"rotateY(-180deg)"}})),r3t=qe("div")(()=>({transition:"0.6s",transformStyle:"preserve-3d",position:"relative"})),UTe=qe("div")(()=>({backfaceVisibility:"hidden",position:"absolute",top:0,left:0,width:"100%",height:"100%"})),o3t=qe(UTe)(()=>({zIndex:2,transform:"rotateY(0deg)"})),a3t=qe("div")(()=>({transform:"rotateY(-180deg)",color:"#fff",display:"inline-flex",flexDirection:"column",padding:"16px",height:"100%",width:"100%",position:"relative",bottom:0,left:0,backfaceVisibility:"hidden"})),n3t=qe("div")(({theme:e})=>({position:"absolute",background:`linear-gradient(to bottom right, black 40%, ${e.palette.background.brand?.default})`,width:"100%",top:0,left:0,display:"flex",flexDirection:"column",alignItems:"left",padding:"16px",boxShadow:"2px 2px 3px 0px black",borderRadius:"1rem"})),LM=qe("div")({height:"max-content",display:"flex",marginTop:"1.2rem",flexDirection:"row",padding:"0rem 1rem",justifyContent:"flex-start",alignItems:"center","@media (max-width:1200px)":{height:"max-content"}}),DM=qe("div")(()=>({display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",gap:"1rem",alignItems:"flex-start",background:"rgba(231, 239, 243, 0.40)",borderRadius:"0.25rem",padding:"0.5rem 1rem",alignSelf:"stretch"})),i3t=qe("div")({display:"flex",alignItems:"center",color:"#fff",margin:"20px 0"}),FM=qe("div")(({isCatalog:e})=>({boxShadow:"2px 2px 3px 0px rgba(26, 26, 26, 1)",position:"absolute",width:"100%",height:"100%",WebkitBackfaceVisibility:"hidden",borderRadius:"0.9375rem",backfaceVisibility:"hidden",color:"white",transform:"rotateY(180deg)",...e&&{background:"linear-gradient(335deg, rgba(0, 179, 159, 0.80) -13.6%, rgba(0, 0, 0, 0.68) 66.8%), radial-gradient(3970.04% 147.22% at 47.5% 100%, #000 0%, #395357 100%)"},...!e&&{background:"linear-gradient(250deg, #477e96 0%, #00b39f 35%, rgb(60, 73, 79) 100%)"}})),p2=e=>{let t=`linear-gradient(to left bottom, ${lx}, ${nx},white, white, white, white, white, white, white, white, ${lx}, ${nx})`,r=`linear-gradient(to right top, ${sx}, ${Ae[30]}, ${Ae[20]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Q[20]}, ${Q[10]}, black)`;return e?t:r},n6=qe("div")(({shouldFlip:e,isDetailed:t,theme:r})=>{let o=r.palette.mode==="light",a=p2(o),n=`2px 2px 3px 0px ${r.palette.background.brand?.default}`;return{position:"relative",zIndex:1,...e&&{position:"absolute",boxShadow:n,background:a},...t&&{boxShadow:n,background:a},width:"100%",height:"100%",WebkitBackfaceVisibility:"hidden",borderRadius:"0.9375rem",backfaceVisibility:"hidden"}}),NM=qe("div")(()=>({fontSize:"0.875rem",textTransform:"capitalize",color:"#eee",margin:"0rem",padding:"0.1rem",fontWeight:"400",lineHeight:"1.5"})),BM=qe("p")(()=>({fontSize:"0.876rem",margin:"0rem",lineHeight:"1.5",fontWeight:"400",color:"#eee"})),HM=qe("div")(()=>({height:"max-content",display:"flex",margin:"0",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start",fontWeight:"400",textAlign:"right",color:"#E7EFF3",textTransform:"capitalize","@media (max-width:1200px)":{height:"max-content"}})),VM=qe("div")(({theme:e})=>{let t=e.palette.mode==="light",r=p2(t),o=`2px 2px 3px 0px ${e.palette.background.brand?.default}`;return{background:r,boxShadow:o,textAlign:"center",borderRadius:"1rem",width:"15rem",height:"18rem",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",[e.breakpoints.down("lg")]:{height:"18.75rem"}}});import{Fragment as i6,jsx as et,jsxs as wo}from"react/jsx-runtime";var y3t=D("a")(()=>({textDecoration:"none"}));var GTe=({catalogClassName:e})=>e?et(vM,{children:et(RM,{catalogClassName:e,children:e})}):et(i6,{}),zTe=({pattern:e,patternType:t,cardHeight:r="16.5rem",cardWidth:o="15rem",cardStyles:a,shouldFlip:n=!0,isDetailed:i=!0,cardTechnologies:l=!0,avatarUrl:s,UserName:u,children:f,basePath:d,subBasePath:p,getHostUrl:m,onCardClick:x})=>{let h={height:r,width:o,...a},g=te(),T=e.catalog_data?.compatibility||[],E=5,[v,I]=qTe([]),k=f2(e);return WTe(()=>{bM({technologies:T,basePath:d,subBasePath:p,setAvailableTechnologies:I})},[]),n?et(o6,{shouldFlip:n,isDetailed:i,outerStyles:h,onClick:x,children:wo(a6,{shouldFlip:n,className:"innerCard",children:[wo(n6,{shouldFlip:n,isDetailed:i,children:[i&&wo(i6,{children:[et(GTe,{catalogClassName:e?.catalog_data?.content_class??""}),et(OM,{children:t}),et(PM,{hasRibbon:!!e?.catalog_data?.content_class,children:e.name})]}),et(d2,{children:et("div",{style:{background:g.palette.mode==="light"?"rgba(231, 239, 243, 0.4)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"},children:f})}),i&&et(_M,{isDetailed:i,children:[{Icon:pa,count:e.download_count},{Icon:kd,count:e.clone_count},{Icon:jd,count:e.view_count},{Icon:Vd,count:e.deployment_count},{Icon:wn,count:e.share_count}].map(({Icon:C,count:b},A)=>wo(kM,{children:[et(C,{width:18,height:18,fill:g.palette.mode==="light"?ua:No}),et(AM,{children:b})]},A))})]}),n&&wo(FM,{isCatalog:!0,children:[wo(LM,{children:[et(Nt,{alt:"Design Author",src:s,sx:{width:"32px",height:"32px",color:"#293B43"}}),et(HM,{children:u})]}),et(d2,{style:{marginTop:"0.7rem",gap:"5px"},children:l&&wo(DM,{children:[et(wM,{children:"Technologies"}),et(xe,{container:!0,style:{gap:"4px",alignItems:"flex-start",flexWrap:"nowrap"},children:T.length<1||v.length<1?et(EM,{children:"No technologies"}):wo(i6,{children:[v.slice(0,E).map((C,b)=>{let A=(m?m():"")+`${d}/${C.toLowerCase()}/${p}/${C.toLowerCase()}-color.svg`;return et(xe,{children:et(ge,{title:C.toLowerCase(),children:et("img",{height:"24px",width:"24px",alt:C.toLowerCase(),src:A})},b)},b)}),v.length>E&&wo(xe,{sx:{padding:"0 8px 0 4px",borderRadius:"16px",border:"1px solid #C9DBE3",background:"#E7EFF3",color:"#3C494E",fontSize:"14px",lineHeight:"1.5",fontWeight:"600"},children:["+",v.length-E]})]})})]})}),i&&et(d2,{style:{marginTop:"20px"},children:et(xe,{container:!0,style:{justifyContent:"space-between",alignItems:"center"},children:wo(xe,{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[wo("div",{style:{display:"flex",flexDirection:"row",gap:"0.2rem",alignItems:"center"},children:[et(IO,{width:18,height:18}),et(BM,{children:"Updated At"})]}),wo(NM,{children:[" ",new Date(e.updated_at.toString().slice(0,10)).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"})]})]})})}),k&&et(IM,{children:wo(MM,{children:["v",k]})})]})]})}):et(o6,{shouldFlip:n,isDetailed:i,outerStyles:h,children:et(a6,{shouldFlip:n,className:"innerCard",children:et(n6,{shouldFlip:n,isDetailed:i,children:f})})})},xf=zTe;import{jsx as UM,jsxs as KTe}from"react/jsx-runtime";var jTe=()=>{let e=te();return KTe(VM,{children:[UM(L4,{fill:e.palette.text.default,width:"100px",height:"100px"}),UM("h3",{style:{color:e.palette.text.default},children:"No match found"})]})},WM=jTe;import p6 from"react";import{jsx as YTe}from"react/jsx-runtime";function $Te({children:e,open:t,anchorEl:r,placement:o="bottom-end",...a}){return YTe(Ed,{open:t,anchorEl:r,placement:o,...a,children:e})}var kp=$Te;import QTe from"mui-datatables";import f6,{useCallback as XTe}from"react";import{jsx as qM}from"react/jsx-runtime";var ZTe=({width:e=V,height:t=U,...r})=>qM("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:e,height:t,fill:r.fill||"currentColor",...r,children:qM("path",{d:"M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"})}),l6=ZTe;var U3t=({kind:e,model:t,color:r})=>!e||!t||!r?null:`/ui/public/static/img/meshmodels/${t}/${r}/${e.toLowerCase()}-${r}.svg`;import zM from"moment";import{jsx as GM}from"react/jsx-runtime";var ol=e=>zM(e).fromNow(),gs=e=>zM(e).format("ddd, MMM D, YYYY h:mm A"),Ts=e=>{let t={year:"numeric",month:"short",day:"numeric"};return new Date(e).toLocaleDateString("en-US",t)},s6=({date:e})=>GM(ge,{title:gs(e),disableInteractive:!0,children:GM("div",{children:ol(e)})});import{Fragment as m2,jsx as Fr,jsxs as u6}from"react/jsx-runtime";var uo=D("div",{shouldForwardProp:e=>e!=="disabled"})(({disabled:e=!1})=>({width:"fit-content",cursor:e?"not-allowed":"pointer",opacity:e?"0.5":"1",display:"flex","& svg":{cursor:e?"not-allowed":"pointer"}})),Ip=({actionsList:e})=>{let[t,r]=f6.useState(null),[o,a]=f6.useState(!1),n=te(),i=u=>{r(u.currentTarget)},l=()=>{r(null),a(!1)},s=u=>{u.type==="share-social"?a(!o):(u.onClick&&u.onClick(),l())};return u6(m2,{children:[Fr(Mt,{title:"View Actions",onClick:i,icon:Fr(l6,{fill:n.palette.icon.default}),arrow:!0}),Fr(Gl,{id:"basic-menu",anchorEl:t,open:!!t,onClose:l,sx:{"& .MuiPaper-root":{backgroundColor:n.palette.background.card}},children:e&&e.map((u,f)=>u.type==="share-social"?[u6(gt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[Fr(Ha,{children:Fr(wn,{width:24,height:24,fill:n.palette.text.primary})}),Fr(jt,{sx:{color:n.palette.text.primary},children:u.title})]},`${f}-menuitem`),Fr(ia,{variant:"submenu",in:o,unmountOnExit:!0,children:u.customComponent},`${f}-collapse`)]:Fr(uo,{disabled:u.disabled,children:u6(gt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[Fr(Ha,{children:u.icon}),Fr(jt,{sx:{color:n.palette.text.primary},children:u.title})]})},f))})]})},JTe=({data:e,columns:t,options:r={},tableCols:o,updateCols:a,columnVisibility:n,rowsPerPageOptions:i=[10,25,50,100],...l})=>{let s={...r,print:!1,download:!1,search:!1,filter:!1,viewColumns:!1,rowsPerPageOptions:i,onViewColumnsChange:(d,p)=>{switch(p){case"add":{let m=t.find(x=>x.name===d);m&&m.options&&(m.options.display=!0,a&&a([...t]));break}case"remove":{let m=t.find(x=>x.name===d);m&&m.options&&(m.options.display=!1,a&&a([...t]));break}}}},u=XTe(()=>{t?.forEach(d=>{typeof d=="object"&&d!==null&&(d.options||(d.options={}),d.options.display=n&&n[d.name],["updated_at","created_at","deleted_at","last_login_time","joined_at","last_run","next_run"].includes(d.name)&&(d.options.customBodyRender=p=>{if(p==="NA"||p===null||p===void 0)return Fr(m2,{children:p});if(typeof p=="object"&&"Valid"in p){let m=p;return m.Valid&&m.Time?Fr(s6,{date:m.Time}):Fr(m2,{children:"NA"})}else return typeof p=="string"?Fr(s6,{date:p}):Fr(m2,{children:p})}))}),a&&a([...t])},[n,a]);return f6.useEffect(()=>{u()},[u]),Fr(QTe,{columns:o??[],data:e||[],title:void 0,components:{ExpandButton:()=>"",Checkbox:Vr},options:{...s,elevation:0,enableNestedDataAccess:"."},...l})},Eo=JTe;import{jsx as d6}from"react/jsx-runtime";function e8e({children:e,title:t,onClick:r,icon:o,style:a,arrow:n=!0,disabled:i=!1,iconType:l,id:s,placement:u}){let f=te();return d6(ge,{title:t,arrow:n,placement:u,id:s,children:d6(uo,{disabled:i,children:d6($e,{disabled:i,onClick:r,sx:{"&:hover":{"& svg":{fill:l==="delete"?f.palette.error.main:f.palette.primary.brand?.default}},...a},children:o||e})})})}var Mt=e8e;import{jsx as Qa,jsxs as t8e}from"react/jsx-runtime";function jM({columns:e,id:t,customToolsProps:r,style:o}){let[a,n]=p6.useState(!1),[i,l]=p6.useState(null),s=te(),u=p=>{if(p.stopPropagation(),n(m=>!m),i){l(null);return}l(p.currentTarget)},f=()=>{l(null),n(!1)},d=(p,m)=>{p.stopPropagation(),r.setColumnVisibility(x=>({...x,[m]:p.target.checked}))};return Qa(p6.Fragment,{children:t8e("div",{id:t,children:[Qa(Mt,{title:"View Columns",onClick:u,icon:Qa(w4,{fill:s.palette.icon.default}),arrow:!0}),Qa(kp,{style:{...o,zIndex:1350},open:!!i,anchorEl:i,placement:"bottom-end",modifiers:[{name:"flip",options:{enabled:!1}},{name:"preventOverflow",options:{enabled:!0,boundariesElement:"scrollParent"}}],children:Qa(K,{children:Qa(Tn,{onClickAway:f,children:Qa("div",{children:Qa(Tr,{sx:{display:"flex",flexDirection:"column",padding:"1rem",boxShadow:a?"0px 4px 8px rgba(0, 0, 0, 0.2)":"none",background:s.palette.background.surfaces},children:e.map(p=>Qa(Wl,{control:Qa(Vr,{checked:r.columnVisibility[p.name],onChange:m=>d(m,p.name)}),label:p.label},p.name))})})})})})]})})}var ya=jM;import{useState as r8e}from"react";import{Fragment as i8e,jsx as c2,jsxs as KM}from"react/jsx-runtime";var o8e=D("figure")(({align:e})=>({margin:"1rem 0",textAlign:e,width:"100%"})),a8e=D("figcaption")(({align:e})=>({fontSize:"0.9rem",color:"#666",marginTop:"0.5rem",textAlign:e})),n8e=({src:e,alt:t,caption:r,align:o="left",...a})=>{let[n,i]=r8e(!1),l=()=>{i(!0)},s=()=>{i(!1)};return KM(i8e,{children:[KM(o8e,{align:o,children:[c2("img",{src:e,alt:t||r||"",loading:"lazy",onClick:l,...a,style:{cursor:"pointer",maxWidth:"100%",height:"auto",boxShadow:"rgba(149, 157, 165, 0.2) 0px 8px 24px",borderRadius:"15px",width:"50%"}}),r&&c2(a8e,{align:o,children:r})]}),c2(la,{open:n,onClose:s,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"auto",maxWidth:"100%"}},children:c2("img",{src:e,alt:t||r||"",onClick:s,style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})},$M=n8e;import{Backdrop as d8e}from"@mui/material";import{jsx as s8e}from"react/jsx-runtime";function l8e({children:e,...t}){return s8e(Cd,{...t,children:e})}var x2=l8e;import{jsx as f8e}from"react/jsx-runtime";function u8e({children:e,...t}){return f8e(Hl,{...t,children:e})}var h2=u8e;import{styled as g2}from"@mui/material";var YM=g2("div")(({theme:e})=>{let t=e.palette.mode==="light"?Iu:lr,r=e.palette.mode==="light"?p4:Kw;return{display:"flex",justifyContent:"space-between",padding:"1rem",boxShadow:"inset 0px -1px 3px 0px rgba(0,0,0,0.2)",background:`linear-gradient(90deg, ${t}, ${r})`,filter:e.palette.mode==="light"?`progid:DXImageTransform.Microsoft.gradient(startColorstr='${Iu}',endColorstr='${p4}',GradientType=1)`:`progid:DXImageTransform.Microsoft.gradient(startColorstr='${Ad}',GradientType=1)`}}),ZM=g2("div")(()=>({zIndex:"100",borderRadius:"5px"})),QM=g2("div")(({theme:e})=>({padding:"1rem 1.5rem",display:"flex",justifyContent:"flex-end",backgroundColor:e.palette.mode==="light"?Iu:Ad,boxShadow:"inset 0px 3px 5px 0px rgba(0,0,0,0.25)"})),XM=g2("div")(({theme:e})=>({padding:"2rem 1rem",backgroundColor:e.palette.mode==="light"?Ue:Od}));import{Fragment as m8e,jsx as ba,jsxs as JM}from"react/jsx-runtime";function p8e({open:e,onClose:t,title:r,leftHeaderIcon:o,helpText:a,helpArea:n,actions:i,hideActions:l=!1,content:s,maxWidth:u="xs",...f}){return ba(la,{sx:{"& .MuiDialog-paper":{borderRadius:"10px"}},open:e,maxWidth:u,onClose:t,slots:{backdrop:d8e},slotProps:{backdrop:{timeout:500}},...f,children:JM(ZM,{children:[JM(YM,{children:[o&&ba("div",{style:{display:"flex",alignItems:"center"},children:o}),r&&ba(m8e,{children:ba("div",{style:{display:"flex",alignItems:"center"},children:ba(Ul,{children:r})})}),ba("div",{style:{display:"flex",alignItems:"center"},children:a&&ba("div",{children:n})})]}),ba(h2,{children:ba(XM,{children:s})}),!l&&ba(x2,{children:ba(QM,{children:i})})]})})}var eL=p8e;import{jsx as tL}from"react/jsx-runtime";function c8e({children:e,style:t,...r}){return tL(Ul,{sx:t,...r,children:tL(G,{sx:{flexGrow:1,fontSize:"1.25rem",textAlign:"center"},variant:"h6",children:e})})}var T2=c8e;import{jsx as m6,jsxs as c6}from"react/jsx-runtime";function x8e({icon:e,message:t,pointerLabel:r,poiner:o=!1}){return c6("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",minHeight:"50vh"},children:[o&&c6(xe,{style:{display:"flex",width:"100%",padding:"0 40px"},children:[m6(G4,{}),m6(G,{sx:{fontSize:24,color:"#808080",px:5,py:2,lineHeight:1.5,letterSpacing:"0.15px",display:"flex",alignItems:"flex-end",marginBottom:"-2rem"},children:r})]}),c6(xe,{style:{marginTop:"120px"},children:[e,m6(G,{sx:{fontSize:"1.5rem",color:"#808080",px:5,py:2,lineHeight:1},children:t})]})]})}var rL=x8e;import{styled as h6}from"@mui/material";import{createContext as h8e,Component as g8e,createElement as oL,useContext as xgt,useState as hgt,useMemo as ggt,forwardRef as Tgt}from"react";var T8e=h8e(null),x6={didCatch:!1,error:null},Mp=class extends g8e{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=x6}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){let{error:t}=this.state;if(t!==null){for(var r,o,a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];(r=(o=this.props).onReset)===null||r===void 0||r.call(o,{args:n,reason:"imperative-api"}),this.setState(x6)}}componentDidCatch(t,r){var o,a;(o=(a=this.props).onError)===null||o===void 0||o.call(a,t,r)}componentDidUpdate(t,r){let{didCatch:o}=this.state,{resetKeys:a}=this.props;if(o&&r.error!==null&&S8e(t.resetKeys,a)){var n,i;(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(x6)}}render(){let{children:t,fallbackRender:r,FallbackComponent:o,fallback:a}=this.props,{didCatch:n,error:i}=this.state,l=t;if(n){let s={error:i,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")l=r(s);else if(o)l=oL(o,s);else if(a!==void 0)l=a;else throw i}return oL(T8e.Provider,{value:{didCatch:n,error:i,resetErrorBoundary:this.resetErrorBoundary}},l)}};function S8e(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,o)=>!Object.is(r,t[o]))}import{Fragment as b8e,jsx as Ro,jsxs as Lp}from"react/jsx-runtime";var C8e=h6(G)(({theme:e})=>({color:e.palette.text.default,fontWeight:"normal",marginTop:"2px",marginBottom:"2px",fontSize:"1.15rem"})),aL=h6(To)(({theme:e})=>({color:e.palette.border.brand,textDecoration:"underline",cursor:"pointer"})),y8e=h6("div")(({theme:e})=>({display:"flex",flexDirection:"column",backgroundColor:e.palette.background.code,color:e.palette.text.tertiary,padding:".85rem",borderRadius:".2rem",marginBlock:".5rem"}));function g6({error:e,children:t,showPackageInfo:r,version:o}){return Lp("div",{role:"alert",children:[Ro("h2",{children:"Uh-oh!\u{1F614} Please pardon the mesh."}),Lp(y8e,{children:[Lp("code",{children:[Ro("strong",{children:"Error: "}),e.message]}),Ro("br",{}),r&&Lp(b8e,{children:[Ro("strong",{children:"Version:"})," ",o]})]}),Lp(C8e,{children:["We apologize for the inconvenience. The issue may be on our end. If troubleshooting doesn't work, please check out our support channels"," ",Ro(aL,{href:"https://discuss.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Discuss Forum"})," "," or ",Ro(aL,{href:"https://slack.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Slack"})]}),Ro(K,{children:t})]})}var nL=(e,t)=>{let r=window.location.href,o=new Date().toLocaleString();console.log("Error Caught Inside Boundary --reportError",e,"Info",t,"Page URL:",r,"Timestamp:",o)},jr=({customFallback:e,children:t,onErrorCaught:r})=>{let o=window.location.href,a=new Date().toLocaleString();return Ro(Mp,{FallbackComponent:e||(i=>Ro(g6,{...i,pageUrl:o,timestamp:a})),onError:(i,l)=>{r?.(i.message),nL(i,l)},children:t})},iL=({Component:e,errorHandlingProps:t={children:null}})=>Ro(jr,{...t,children:Ro(e,{})}),lL=({Component:e})=>Ro(Mp,{FallbackComponent:()=>null,onError:nL,children:Ro(e,{})});import v6 from"@mui/material/Typography";import{useState as Bp}from"react";import{styled as zo}from"@mui/material";import{useRef as O8e,useState as C2}from"react";import{useState as v8e}from"react";import{Fragment as E8e,jsx as S2,jsxs as R8e}from"react/jsx-runtime";function w8e({content:e,fontSize:t,fontWeight:r=400,variant:o="standard",bgColor:a="#141414",icon:n=S2(k4,{fontSize:"small"}),...i}){let[l,s]=v8e(null);return R8e(E8e,{children:[S2($e,{size:"small",onClick:p=>{s(p.currentTarget)},sx:{color:"inherit",padding:"2px",verticalAlign:"middle"},children:n}),S2(wd,{open:!!l,anchorEl:l,onClose:()=>{s(null)},disablePortal:!0,container:l?.ownerDocument?.body,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},PaperProps:{sx:{background:a,zIndex:1501,opacity:"1",color:Ue,maxWidth:"500px",fontSize:t||(o==="standard"?"1rem":"0.75rem"),fontWeight:r,borderRadius:"0.5rem",padding:o==="standard"?"0.9rem":"0.5rem 0.75rem",boxShadow:"rgba(0, 0, 0, 0.6) 0px 4px 10px, rgba(0, 0, 0, 0.5) 0px 2px 4px"}},...i,children:typeof e=="string"?S2(mf,{content:e}):e})]})}var T6=w8e;import{jsx as Xa,jsxs as Dp}from"react/jsx-runtime";var hf=zo($e)`
59
+ `))}function s(m,x,h,g){let T=h.enter("tableCell"),E=h.enter("phrasing"),v=l2(m,h,{...g,before:n,after:n});return E(),T(),v}function u(m,x){return oM(m,{align:x,alignDelimiters:o,padding:r,stringLength:a})}function f(m,x,h){let g=m.children,T=-1,E=[],v=x.enter("table");for(;++T<g.length;)E[T]=d(g[T],x,h);return v(),E}function d(m,x,h){let g=m.children,T=-1,E=[],v=x.enter("tableRow");for(;++T<g.length;)E[T]=s(g[T],m,x,h);return v(),E}function p(m,x,h){let g=F8(m,x,h);return h.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function nM(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function iM(e){let t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function lM(e,t,r,o){let a=iM(r),n=r.bulletCurrent||nM(r);t&&t.type==="list"&&t.ordered&&(n=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+n);let i=n.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);let l=r.createTracker(o);l.move(n+" ".repeat(i-n.length)),l.shift(i);let s=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,l.current()),f);return s(),u;function f(d,p,m){return p?(m?"":" ".repeat(i))+d:(m?n:n+" ".repeat(i-n.length))+d}}var V8={exit:{taskListCheckValueChecked:sM,taskListCheckValueUnchecked:sM,paragraph:yTe}},U8={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:bTe}};function sM(e){let t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function yTe(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1],o=r.children[0];if(o&&o.type==="text"){let a=t.children,n=-1,i;for(;++n<a.length;){let l=a[n];if(l.type==="paragraph"){i=l;break}}i===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function bTe(e,t,r,o){let a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=hs(o);n&&l.move(i);let s=lM(e,t,r,{...o,...l.current()});return n&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+i}}function W8(){return[A8,I8(),L8,B8,V8]}function q8(e){return{extensions:[P8,M8(),D8,H8(e),U8]}}function _p(e={}){let t=this.data();r("micromarkExtensions",zI(e)),r("fromMarkdownExtensions",W8()),r("toMarkdownExtensions",q8(e));function r(o,a){(t[o]?t[o]:t[o]=[]).push(a)}}import{styled as vr}from"@mui/material";var s2=vr("a")(({theme:e})=>({color:e.palette.background.brand?.default,textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer",fontFamily:"inherit"})),uM=vr("a")(()=>({textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer"})),fM=vr("p")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),dM=vr("p")(({theme:e})=>({color:e.palette.text.constant?.white||Yw.inverse,marginBlock:"0px",fontFamily:"inherit"})),G8=vr("h1")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),z8=vr("h2")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),j8=vr("h3")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),K8=vr("h4")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),$8=vr("h5")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),Y8=vr("h6")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),Z8=vr("blockquote")(({theme:e})=>({color:e.palette.text.default,borderLeft:`2px solid ${e.palette.text.brand}`,backgroundColor:e.palette.background.tertiary})),Q8=vr("ul")(({theme:e})=>({color:e.palette.text.default})),X8=vr("li")(({theme:e})=>({color:e.palette.text.default,...e.typography.textB1Regular,fontFamily:"inherit"})),J8=vr("th")(({theme:e})=>({color:e.palette.text.default,...e.typography.textH3Medium,marginBlock:"0px",fontFamily:"inherit"})),e6=vr("td")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),pM=vr("pre")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",fontFamily:"inherit"})),mM=vr("code")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",padding:"1.5px",paddingInline:"5px",fontFamily:"inherit",borderRadius:3}));import{jsx as Ve}from"react/jsx-runtime";var pf=({content:e})=>Ve(Xu,{remarkPlugins:[_p],rehypePlugins:[c8],components:{p:({...t})=>Ve(fM,{children:t.children}),a:({...t})=>Ve(s2,{onClick:r=>{r.preventDefault(),window.open(t.href,"_blank")},href:t.href,children:t.children}),h1:({...t})=>Ve(G8,{children:t.children}),h2:({...t})=>Ve(z8,{children:t.children}),h3:({...t})=>Ve(j8,{children:t.children}),h4:({...t})=>Ve(K8,{children:t.children}),h5:({...t})=>Ve($8,{children:t.children}),h6:({...t})=>Ve(Y8,{children:t.children}),blockquote:({...t})=>Ve(Z8,{children:t.children}),ul:({...t})=>Ve(Q8,{children:t.children}),li:({...t})=>Ve(X8,{children:t.children}),th:({...t})=>Ve(J8,{children:t.children}),td:({...t})=>Ve(e6,{children:t.children}),pre:({...t})=>Ve(pM,{children:t.children}),code:({...t})=>Ve(mM,{children:t.children})},children:e}),mf=({content:e})=>Ve(Xu,{remarkPlugins:[_p],components:{p:({...r})=>Ve(dM,{children:r.children}),a:({...r})=>Ve(s2,{onClick:o=>{window.open(r.href,"_blank"),o.stopPropagation()},as:"a",children:r.children}),h1:({...r})=>Ve(G8,{children:r.children}),h2:({...r})=>Ve(z8,{children:r.children}),h3:({...r})=>Ve(j8,{children:r.children}),h4:({...r})=>Ve(K8,{children:r.children}),h5:({...r})=>Ve($8,{children:r.children}),h6:({...r})=>Ve(Y8,{children:r.children}),blockquote:({...r})=>Ve(Z8,{children:r.children}),ul:({...r})=>Ve(Q8,{children:r.children}),li:({...r})=>Ve(X8,{children:r.children}),th:({...r})=>Ve(J8,{children:r.children}),td:({...r})=>Ve(e6,{children:r.children})},children:(r=>{if(!r)return r;try{return JSON.parse(`"${r}"`)}catch{return r}})(e)}),vTe=({content:e})=>Ve(Xu,{remarkPlugins:[_p],components:{a:({...t})=>Ve(uM,{onClick:r=>{window.open(t.href,"_blank"),r.stopPropagation()},as:"a",children:t.children})},children:e});import{jsx as cM}from"react/jsx-runtime";function ETe({title:e,onClick:t,placement:r,children:o,fontSize:a,fontWeight:n=400,variant:i="standard",bgColor:l="#141414",componentsProps:s={},...u}){return cM(Kt,{enterTouchDelay:0,leaveTouchDelay:2e3,componentsProps:wTe.merge({tooltip:{sx:{background:l,color:Ue,maxWidth:"600px",fontSize:a||(i==="standard"?"1rem":"0.75rem"),fontWeight:{fontWeight:n},borderRadius:"0.5rem",padding:i==="standard"?"0.9rem":"0.5rem 0.75rem",boxShadow:"rgba(0, 0, 0, 0.6) 0px 4px 10px, rgba(0, 0, 0, 0.5) 0px 2px 4px"}},popper:{sx:{zIndex:9999999999,opacity:"1"}},arrow:{sx:{color:l}}},s),title:typeof e=="string"?cM(mf,{content:e}):e,placement:r,arrow:!0,onClick:t,...u,children:o})}var ge=ETe;import{jsx as t6}from"react/jsx-runtime";var RTe=({helpText:e,style:t={},...r})=>t6(ge,{title:e,...r,children:t6("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",...t},children:t6(H4,{...Gr})})}),rl=RTe;import{Fragment as MTe,jsx as Ca,jsxs as u2}from"react/jsx-runtime";var xM=D(Nt)(({theme:e,borderColor:t})=>({width:e.spacing(4),height:e.spacing(4),cursor:"pointer",border:`1.5px solid ${t||e.palette.common.white} !important`})),ATe=D("div")(({theme:e})=>({width:e.spacing(4.5),height:e.spacing(4.5),border:`1.5px solid ${e.palette.common.white}`,borderRadius:"50%",background:ox,display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"-10px",zIndex:0,"&:hover":{cursor:"pointer"}})),PTe=D("div")({display:"flex",alignItems:"center",padding:"5px 15px 5px 10px","&:hover":{cursor:"pointer",background:"#cecece80 !important"}}),_Te=D(G)({marginLeft:"10px"}),kTe=D(wd)(()=>({"& .MuiPopover-paper":{marginTop:"10px",maxHeight:"331px"}})),ITe=({users:e,providerUrl:t,onOpenWorkspace:r})=>{let[o,a]=OTe(null),n=d=>{window.open(d,"_blank","noreferrer")},i=d=>{a(d.currentTarget)},l=()=>{a(null)},s=Object.entries(e).length,u=4,f=te();return u2(j3,{max:u+1,children:[Object.entries(e).slice(0,u).map(([d,p])=>Ca(ge,{componentsProps:{tooltip:{sx:{background:f.palette.background.paper,color:f.palette.text.primary,boxShadow:f.shadows[4]}},arrow:{sx:{color:f.palette.background.paper}}},title:u2("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column"},children:[Ca(G,{style:{display:"flex",justifyContent:"center",flexDirection:"column",margin:"auto",fontSize:"1rem"},children:p.name}),Ca(go,{}),Ca(Oe,{size:"small",variant:"outlined",onClick:r,style:{fontSize:"1rem",padding:"2px 8px",minWidth:"auto",marginTop:"8px"},children:"Open Recents"})]}),arrow:!0,children:Ca(xM,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"},onClick:()=>n(`${t}/user/${p.user_id}`)},d)},d)),s>u&&u2(MTe,{children:[Ca(ATe,{onClick:i,"aria-describedby":"user-popover",children:o?Ca(yo,{fill:f.palette.common.white,...Gr,style:{marginLeft:"4px"}}):Ca(G,{variant:"body2",style:{color:f.palette.common.white,fontSize:"12px"},children:`+${s-u}`})}),Ca(kTe,{id:"user-popover",open:!!o,anchorEl:o,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:Object.entries(e).slice(u,s).map(([d,p])=>u2(PTe,{onClick:()=>n(`${t}/user/${p.user_id}`),children:[Ca(xM,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"}}),Ca(_Te,{variant:"body1",children:p.name})]},d))})]})]})},hM=ITe;import{jsx as gM}from"react/jsx-runtime";function LTe({tooltip:e,tooltipPlacement:t="top",variant:r="filled",label:o,icon:a,onClick:n,onDelete:i,style:l,...s}){return gM(ge,{title:e,placement:t,children:gM(bt,{sx:{paddingY:"10px",padding:"5px 6px !important",color:"black",fontSize:"14px",textTransform:"uppercase",fontWeight:400,height:"unset",borderRadius:"100px",border:"0.5px solid #51636B",background:"white",maxWidth:"230px"},variant:r,label:o,onClick:n,onDelete:i,icon:a,style:l,...s})})}var TM=LTe;import{useState as SM}from"react";import{Fragment as CM,jsx as Un,jsxs as FTe}from"react/jsx-runtime";var DTe=({zoomEffect:e=!1,imgURL:t,type:r,width:o,height:a,style:n={}})=>{let[i,l]=SM(!1),[s,u]=SM(!1),f=()=>{e&&u(!0)},d=()=>{u(!1)},p=({type:m})=>m.type==="filter"?Un(z4,{width:o,height:a,style:n}):Un(Ua,{width:o,height:a,style:n});return Un(CM,{children:t&&t.length>0?Un("div",{style:{width:"100%",height:"100%",position:"relative"},children:i?Un(p,{type:r}):FTe(CM,{children:[Un("img",{src:t[0],alt:"Design SnapShot",loading:"lazy",onClick:f,onError:()=>l(!0),style:{cursor:"pointer",width:"100%",height:"100%",objectFit:"cover"}}),Un(la,{open:s,onClose:d,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"hidden",maxWidth:"60vw"}},children:Un("img",{src:t[0],alt:"Zoomed Design SnapShot",style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})}):Un(p,{type:r})})},cf=DTe;import{useEffect as WTe,useState as qTe}from"react";import NTe from"js-yaml";var BTe=async(e,t=!0,r)=>new Promise(o=>{let a=new Image;t&&!e.startsWith("http")?a.src=(r?r():"")+e:a.src=e,a.onload=()=>{o(!0)},a.onerror=()=>{o(!1)}}),HTe=async(e,t,r)=>{let o=[];for(let a of e){let n=`${t}/${a.toLowerCase()}/${r}/${a.toLowerCase()}-color.svg`;await BTe(n)&&o.push(a)}return o},yM=e=>{try{return NTe.load(e)?.version||r6}catch(t){return console.error("Failed to parse pattern file to get version:",t),r6}},bM=async({technologies:e,basePath:t="",subBasePath:r="",setAvailableTechnologies:o})=>{let a=await HTe(e,t,r);o(a)},r6="0.0.0",f2=e=>{switch(e.visibility){case"published":return e?.catalog_data?.published_version||r6;case"public":case"private":return yM(e.pattern_file);default:return yM(e.pattern_file)}};import{styled as qe,Typography as VTe}from"@mui/material";var vM=qe("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px",zIndex:10})),wM=qe("div")(()=>({color:"#eee",fontSize:"0.875rem",lineHeight:"1.5",fontWeight:"600",borderBottom:"1px solid rgba(231, 239, 243, 0.40)"})),EM=qe("div")(()=>({color:"#eee",overflow:"hidden",fontSize:"14px",lineHeight:"24px",fontWeight:"400",marginTop:".8rem"})),RM=qe("div")(({catalogClassName:e,theme:t})=>({font:"bold 10px sans-serif",WebkitTransform:"rotate(-45deg)",textAlign:"center",transform:"rotate(-45deg)",position:"relative",padding:"4px 0",top:"15px",left:"-30px",width:"120px",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",backgroundColor:{community:m4.main,official:t.palette.background.cta?.default||"#EBC017",verified:t.palette.background.brand?.default||"#00B39F"}[e],color:e==="official"?t.palette.common.black:t.palette.common.white})),o6=qe("div")(({shouldFlip:e,isDetailed:t,outerStyles:r,theme:o})=>({position:"relative",borderRadius:"1rem",textAlign:"center",transformStyle:"preserve-3d",display:"block",perspective:"1000px",transition:"all .9s ease-out",...e&&{"&:hover":{cursor:"pointer","& .innerCard":{transform:"rotateY(180deg)"}}},...t&&{[o.breakpoints.down("lg")]:{height:"16.75rem"}},...r})),a6=qe("div")(({shouldFlip:e,isDetailed:t})=>({position:"relative",width:"100%",height:"100%",textAlign:"center",transition:"transform 0.6s",...e&&{transformOrigin:"50% 50%",transformStyle:"preserve-3d"},...t&&{boxShadow:"0 4px 8px 0 rgba(0,0,0,0.2)",borderRadius:"0.9375rem"}})),OM=qe("span")(({theme:e})=>({position:"absolute",top:"0",right:"0",minWidth:"3rem",padding:"0 0.75rem",fontSize:"0.875rem",textTransform:"capitalize",background:e.palette.background.brand?.default,color:e.palette.background.constant?.white,borderRadius:"0 1rem 0 2rem",zIndex:5})),AM=qe("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.mode==="light"?ua:No,fontWeight:"600"})),PM=qe(VTe)(({theme:e,hasRibbon:t})=>({fontWeight:"bold",textTransform:"capitalize",color:e.palette.text.default,fontSize:"1.125rem",padding:"0rem 1rem",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"center",width:"100%",margin:t?"3.5rem 0 1.59rem 0":"2rem 0 1.59rem 0",fontFamily:"inherit",...t&&{paddingLeft:"1.5rem"}})),_M=qe("div")(({isDetailed:e,theme:t})=>({display:"flex",justifyContent:"space-around",fontSize:"0.2rem",color:t.palette.mode==="light"?"rgba(26, 26, 26, .8)":t.palette.text.default,padding:"0.9rem 0.1rem",background:t.palette.mode==="light"?"#E7EFF3":ua,...e&&{position:"absolute",bottom:"0px"},...!e&&{marginTop:"1.2rem"},borderRadius:"0 0 0.9375rem 0.9375rem",width:"100%"})),kM=qe("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),d2=qe("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),J9t=qe("div")(({theme:e})=>({background:e.palette.background.surfaces,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"})),e3t=qe("div")(({theme:e})=>({display:"inline-block",backgroundColor:e.palette.background.supplementary,color:e.palette.text.constant?.white,borderRadius:"4px",fontSize:"0.75rem",fontWeight:"bold",margin:"5px 0",padding:"2px 5px",maxWidth:"fit-content"})),IM=qe("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.75",color:e.palette.text.constant?.white,position:"absolute",bottom:"16px",left:"16px",borderRadius:"4px",background:e.palette.background.supplementary,justifyContent:"center"})),MM=qe("p")(({theme:e})=>({fontSize:"0.75rem",margin:"0",padding:"0.25rem .5rem",lineHeight:"1.5",textTransform:"lowercase",fontWeight:"600",borderRadius:"4.05px",color:e.palette.text.constant?.white})),t3t=qe("div")(()=>({perspective:"1000px","&:hover .flipper":{transform:"rotateY(-180deg)"}})),r3t=qe("div")(()=>({transition:"0.6s",transformStyle:"preserve-3d",position:"relative"})),UTe=qe("div")(()=>({backfaceVisibility:"hidden",position:"absolute",top:0,left:0,width:"100%",height:"100%"})),o3t=qe(UTe)(()=>({zIndex:2,transform:"rotateY(0deg)"})),a3t=qe("div")(()=>({transform:"rotateY(-180deg)",color:"#fff",display:"inline-flex",flexDirection:"column",padding:"16px",height:"100%",width:"100%",position:"relative",bottom:0,left:0,backfaceVisibility:"hidden"})),n3t=qe("div")(({theme:e})=>({position:"absolute",background:`linear-gradient(to bottom right, black 40%, ${e.palette.background.brand?.default})`,width:"100%",top:0,left:0,display:"flex",flexDirection:"column",alignItems:"left",padding:"16px",boxShadow:"2px 2px 3px 0px black",borderRadius:"1rem"})),LM=qe("div")({height:"max-content",display:"flex",marginTop:"1.2rem",flexDirection:"row",padding:"0rem 1rem",justifyContent:"flex-start",alignItems:"center","@media (max-width:1200px)":{height:"max-content"}}),DM=qe("div")(()=>({display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",gap:"1rem",alignItems:"flex-start",background:"rgba(231, 239, 243, 0.40)",borderRadius:"0.25rem",padding:"0.5rem 1rem",alignSelf:"stretch"})),i3t=qe("div")({display:"flex",alignItems:"center",color:"#fff",margin:"20px 0"}),FM=qe("div")(({isCatalog:e})=>({boxShadow:"2px 2px 3px 0px rgba(26, 26, 26, 1)",position:"absolute",width:"100%",height:"100%",WebkitBackfaceVisibility:"hidden",borderRadius:"0.9375rem",backfaceVisibility:"hidden",color:"white",transform:"rotateY(180deg)",...e&&{background:"linear-gradient(335deg, rgba(0, 179, 159, 0.80) -13.6%, rgba(0, 0, 0, 0.68) 66.8%), radial-gradient(3970.04% 147.22% at 47.5% 100%, #000 0%, #395357 100%)"},...!e&&{background:"linear-gradient(250deg, #477e96 0%, #00b39f 35%, rgb(60, 73, 79) 100%)"}})),p2=e=>{let t=`linear-gradient(to left bottom, ${lx}, ${nx},white, white, white, white, white, white, white, white, ${lx}, ${nx})`,r=`linear-gradient(to right top, ${sx}, ${Ae[30]}, ${Ae[20]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Q[20]}, ${Q[10]}, black)`;return e?t:r},n6=qe("div")(({shouldFlip:e,isDetailed:t,theme:r})=>{let o=r.palette.mode==="light",a=p2(o),n=`2px 2px 3px 0px ${r.palette.background.brand?.default}`;return{position:"relative",zIndex:1,...e&&{position:"absolute",boxShadow:n,background:a},...t&&{boxShadow:n,background:a},width:"100%",height:"100%",WebkitBackfaceVisibility:"hidden",borderRadius:"0.9375rem",backfaceVisibility:"hidden"}}),NM=qe("div")(()=>({fontSize:"0.875rem",textTransform:"capitalize",color:"#eee",margin:"0rem",padding:"0.1rem",fontWeight:"400",lineHeight:"1.5"})),BM=qe("p")(()=>({fontSize:"0.876rem",margin:"0rem",lineHeight:"1.5",fontWeight:"400",color:"#eee"})),HM=qe("div")(()=>({height:"max-content",display:"flex",margin:"0",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start",fontWeight:"400",textAlign:"right",color:"#E7EFF3",textTransform:"capitalize","@media (max-width:1200px)":{height:"max-content"}})),VM=qe("div")(({theme:e})=>{let t=e.palette.mode==="light",r=p2(t),o=`2px 2px 3px 0px ${e.palette.background.brand?.default}`;return{background:r,boxShadow:o,textAlign:"center",borderRadius:"1rem",width:"15rem",height:"18rem",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",[e.breakpoints.down("lg")]:{height:"18.75rem"}}});import{Fragment as i6,jsx as et,jsxs as wo}from"react/jsx-runtime";var y3t=D("a")(()=>({textDecoration:"none"}));var GTe=({catalogClassName:e})=>e?et(vM,{children:et(RM,{catalogClassName:e,children:e})}):et(i6,{}),zTe=({pattern:e,patternType:t,cardHeight:r="16.5rem",cardWidth:o="15rem",cardStyles:a,shouldFlip:n=!0,isDetailed:i=!0,cardTechnologies:l=!0,avatarUrl:s,UserName:u,children:f,basePath:d,subBasePath:p,getHostUrl:m,onCardClick:x})=>{let h={height:r,width:o,...a},g=te(),T=e.catalog_data?.compatibility||[],E=5,[v,I]=qTe([]),k=f2(e);return WTe(()=>{bM({technologies:T,basePath:d,subBasePath:p,setAvailableTechnologies:I})},[]),n?et(o6,{shouldFlip:n,isDetailed:i,outerStyles:h,onClick:x,children:wo(a6,{shouldFlip:n,className:"innerCard",children:[wo(n6,{shouldFlip:n,isDetailed:i,children:[i&&wo(i6,{children:[et(GTe,{catalogClassName:e?.catalog_data?.content_class??""}),et(OM,{children:t}),et(PM,{hasRibbon:!!e?.catalog_data?.content_class,children:e.name})]}),et(d2,{children:et("div",{style:{background:g.palette.mode==="light"?"rgba(231, 239, 243, 0.4)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"},children:f})}),i&&et(_M,{isDetailed:i,children:[{Icon:pa,count:e.download_count},{Icon:kd,count:e.clone_count},{Icon:jd,count:e.view_count},{Icon:Vd,count:e.deployment_count},{Icon:wn,count:e.share_count}].map(({Icon:C,count:b},A)=>wo(kM,{children:[et(C,{width:18,height:18,fill:g.palette.mode==="light"?ua:No}),et(AM,{children:b})]},A))})]}),n&&wo(FM,{isCatalog:!0,children:[wo(LM,{children:[et(Nt,{alt:"Design Author",src:s,sx:{width:"32px",height:"32px",color:"#293B43"}}),et(HM,{children:u})]}),et(d2,{style:{marginTop:"0.7rem",gap:"5px"},children:l&&wo(DM,{children:[et(wM,{children:"Technologies"}),et(xe,{container:!0,style:{gap:"4px",alignItems:"flex-start",flexWrap:"nowrap"},children:T.length<1||v.length<1?et(EM,{children:"No technologies"}):wo(i6,{children:[v.slice(0,E).map((C,b)=>{let A=(m?m():"")+`${d}/${C.toLowerCase()}/${p}/${C.toLowerCase()}-color.svg`;return et(xe,{children:et(ge,{title:C.toLowerCase(),children:et("img",{height:"24px",width:"24px",alt:C.toLowerCase(),src:A})},b)},b)}),v.length>E&&wo(xe,{sx:{padding:"0 8px 0 4px",borderRadius:"16px",border:"1px solid #C9DBE3",background:"#E7EFF3",color:"#3C494E",fontSize:"14px",lineHeight:"1.5",fontWeight:"600"},children:["+",v.length-E]})]})})]})}),i&&et(d2,{style:{marginTop:"20px"},children:et(xe,{container:!0,style:{justifyContent:"space-between",alignItems:"center"},children:wo(xe,{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[wo("div",{style:{display:"flex",flexDirection:"row",gap:"0.2rem",alignItems:"center"},children:[et(IO,{width:18,height:18}),et(BM,{children:"Updated At"})]}),wo(NM,{children:[" ",new Date(e.updated_at.toString().slice(0,10)).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"})]})]})})}),k&&et(IM,{children:wo(MM,{children:["v",k]})})]})]})}):et(o6,{shouldFlip:n,isDetailed:i,outerStyles:h,children:et(a6,{shouldFlip:n,className:"innerCard",children:et(n6,{shouldFlip:n,isDetailed:i,children:f})})})},xf=zTe;import{jsx as UM,jsxs as KTe}from"react/jsx-runtime";var jTe=()=>{let e=te();return KTe(VM,{children:[UM(L4,{fill:e.palette.text.default,width:"100px",height:"100px"}),UM("h3",{style:{color:e.palette.text.default},children:"No match found"})]})},WM=jTe;import p6 from"react";import{jsx as YTe}from"react/jsx-runtime";function $Te({children:e,open:t,anchorEl:r,placement:o="bottom-end",...a}){return YTe(Ed,{open:t,anchorEl:r,placement:o,...a,children:e})}var kp=$Te;import QTe from"mui-datatables";import f6,{useCallback as XTe}from"react";import{jsx as qM}from"react/jsx-runtime";var ZTe=({width:e=V,height:t=U,...r})=>qM("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:e,height:t,fill:r.fill||"currentColor",...r,children:qM("path",{d:"M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"})}),l6=ZTe;var U3t=({kind:e,model:t,color:r})=>!e||!t||!r?null:`/ui/public/static/img/meshmodels/${t}/${r}/${e.toLowerCase()}-${r}.svg`;import zM from"moment";import{jsx as GM}from"react/jsx-runtime";var ol=e=>zM(e).fromNow(),gs=e=>zM(e).format("ddd, MMM D, YYYY h:mm A"),Ts=e=>{let t={year:"numeric",month:"short",day:"numeric"};return new Date(e).toLocaleDateString("en-US",t)},s6=({date:e})=>GM(ge,{title:gs(e),disableInteractive:!0,children:GM("div",{children:ol(e)})});import{Fragment as m2,jsx as Fr,jsxs as u6}from"react/jsx-runtime";var uo=D("div",{shouldForwardProp:e=>e!=="disabled"})(({disabled:e=!1})=>({width:"fit-content",cursor:e?"not-allowed":"pointer",opacity:e?"0.5":"1",display:"flex","& svg":{cursor:e?"not-allowed":"pointer"}})),Ip=({actionsList:e})=>{let[t,r]=f6.useState(null),[o,a]=f6.useState(!1),n=te(),i=u=>{r(u.currentTarget)},l=()=>{r(null),a(!1)},s=u=>{u.type==="share-social"?a(!o):(u.onClick&&u.onClick(),l())};return u6(m2,{children:[Fr(Mt,{title:"View Actions",onClick:i,icon:Fr(l6,{fill:n.palette.icon.default}),arrow:!0}),Fr(Gl,{id:"basic-menu",anchorEl:t,open:!!t,onClose:l,sx:{"& .MuiPaper-root":{backgroundColor:n.palette.background.card}},children:e&&e.map((u,f)=>u.type==="share-social"?[u6(gt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[Fr(Ha,{children:Fr(wn,{width:24,height:24,fill:n.palette.text.primary})}),Fr(jt,{sx:{color:n.palette.text.primary},children:u.title})]},`${f}-menuitem`),Fr(ia,{variant:"submenu",in:o,unmountOnExit:!0,children:u.customComponent},`${f}-collapse`)]:Fr(uo,{disabled:u.disabled,children:u6(gt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[Fr(Ha,{children:u.icon}),Fr(jt,{sx:{color:n.palette.text.primary},children:u.title})]})},f))})]})},JTe=({data:e,columns:t,options:r={},tableCols:o,updateCols:a,columnVisibility:n,rowsPerPageOptions:i=[10,25,50,100],...l})=>{let s={...r,print:!1,download:!1,search:!1,filter:!1,viewColumns:!1,rowsPerPageOptions:i,onViewColumnsChange:(d,p)=>{switch(p){case"add":{let m=t.find(x=>x.name===d);m&&m.options&&(m.options.display=!0,a&&a([...t]));break}case"remove":{let m=t.find(x=>x.name===d);m&&m.options&&(m.options.display=!1,a&&a([...t]));break}}}},u=XTe(()=>{t?.forEach(d=>{typeof d=="object"&&d!==null&&(d.options||(d.options={}),d.options.display=n&&n[d.name],["updated_at","created_at","deleted_at","last_login_time","joined_at","last_run","next_run"].includes(d.name)&&(d.options.customBodyRender=p=>{if(p==="NA"||p===null||p===void 0)return Fr(m2,{children:p});if(typeof p=="object"&&"Valid"in p){let m=p;return m.Valid&&m.Time?Fr(s6,{date:m.Time}):Fr(m2,{children:"NA"})}else return typeof p=="string"?Fr(s6,{date:p}):Fr(m2,{children:p})}))}),a&&a([...t])},[n,a]);return f6.useEffect(()=>{u()},[u]),Fr(QTe,{columns:o??[],data:e||[],title:void 0,components:{ExpandButton:()=>"",Checkbox:Vr},options:{...s,elevation:0,enableNestedDataAccess:"."},...l})},Eo=JTe;import{jsx as d6}from"react/jsx-runtime";function e8e({children:e,title:t,onClick:r,icon:o,style:a,arrow:n=!0,disabled:i=!1,iconType:l,id:s,placement:u}){let f=te();return d6(ge,{title:t,arrow:n,placement:u,id:s,children:d6(uo,{disabled:i,children:d6($e,{disabled:i,onClick:r,sx:{"&:hover":{"& svg":{fill:l==="delete"?f.palette.error.main:f.palette.primary.brand?.default}},...a},children:o||e})})})}var Mt=e8e;import{jsx as Qa,jsxs as t8e}from"react/jsx-runtime";function jM({columns:e,id:t,customToolsProps:r,style:o}){let[a,n]=p6.useState(!1),[i,l]=p6.useState(null),s=te(),u=p=>{if(p.stopPropagation(),n(m=>!m),i){l(null);return}l(p.currentTarget)},f=()=>{l(null),n(!1)},d=(p,m)=>{p.stopPropagation(),r.setColumnVisibility(x=>({...x,[m]:p.target.checked}))};return Qa(p6.Fragment,{children:t8e("div",{id:t,children:[Qa(Mt,{title:"View Columns",onClick:u,icon:Qa(w4,{fill:s.palette.icon.default}),arrow:!0}),Qa(kp,{style:{...o,zIndex:1350},open:!!i,anchorEl:i,placement:"bottom-end",modifiers:[{name:"flip",options:{enabled:!1}},{name:"preventOverflow",options:{enabled:!0,boundariesElement:"scrollParent"}}],children:Qa(K,{children:Qa(Tn,{onClickAway:f,children:Qa("div",{children:Qa(Tr,{sx:{display:"flex",flexDirection:"column",padding:"1rem",boxShadow:a?"0px 4px 8px rgba(0, 0, 0, 0.2)":"none",background:s.palette.background.surfaces},children:e.map(p=>Qa(Wl,{control:Qa(Vr,{checked:r.columnVisibility[p.name],onChange:m=>d(m,p.name)}),label:p.label},p.name))})})})})})]})})}var ya=jM;import{useState as r8e}from"react";import{Fragment as i8e,jsx as c2,jsxs as KM}from"react/jsx-runtime";var o8e=D("figure")(({align:e})=>({margin:"1rem 0",textAlign:e,width:"100%"})),a8e=D("figcaption")(({align:e})=>({fontSize:"0.9rem",color:"#666",marginTop:"0.5rem",textAlign:e})),n8e=({src:e,alt:t,caption:r,align:o="left",...a})=>{let[n,i]=r8e(!1),l=()=>{i(!0)},s=()=>{i(!1)};return KM(i8e,{children:[KM(o8e,{align:o,children:[c2("img",{src:e,alt:t||r||"",loading:"lazy",onClick:l,...a,style:{cursor:"pointer",maxWidth:"100%",height:"auto",boxShadow:"rgba(149, 157, 165, 0.2) 0px 8px 24px",borderRadius:"15px",width:"50%"}}),r&&c2(a8e,{align:o,children:r})]}),c2(la,{open:n,onClose:s,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"auto",maxWidth:"100%"}},children:c2("img",{src:e,alt:t||r||"",onClick:s,style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})},$M=n8e;import{Backdrop as d8e}from"@mui/material";import{jsx as s8e}from"react/jsx-runtime";function l8e({children:e,...t}){return s8e(Cd,{...t,children:e})}var x2=l8e;import{jsx as f8e}from"react/jsx-runtime";function u8e({children:e,...t}){return f8e(Hl,{...t,children:e})}var h2=u8e;import{styled as g2}from"@mui/material";var YM=g2("div")(({theme:e})=>{let t=e.palette.mode==="light"?Iu:lr,r=e.palette.mode==="light"?p4:Kw;return{display:"flex",justifyContent:"space-between",padding:"1rem",boxShadow:"inset 0px -1px 3px 0px rgba(0,0,0,0.2)",background:`linear-gradient(90deg, ${t}, ${r})`,filter:e.palette.mode==="light"?`progid:DXImageTransform.Microsoft.gradient(startColorstr='${Iu}',endColorstr='${p4}',GradientType=1)`:`progid:DXImageTransform.Microsoft.gradient(startColorstr='${Ad}',GradientType=1)`}}),ZM=g2("div")(()=>({zIndex:"100",borderRadius:"5px"})),QM=g2("div")(({theme:e})=>({padding:"1rem 1.5rem",display:"flex",justifyContent:"flex-end",backgroundColor:e.palette.mode==="light"?Iu:Ad,boxShadow:"inset 0px 3px 5px 0px rgba(0,0,0,0.25)"})),XM=g2("div")(({theme:e})=>({padding:"2rem 1rem",backgroundColor:e.palette.mode==="light"?Ue:Od}));import{Fragment as m8e,jsx as ba,jsxs as JM}from"react/jsx-runtime";function p8e({open:e,onClose:t,title:r,leftHeaderIcon:o,helpText:a,helpArea:n,actions:i,hideActions:l=!1,content:s,maxWidth:u="xs",...f}){return ba(la,{sx:{"& .MuiDialog-paper":{borderRadius:"10px"}},open:e,maxWidth:u,onClose:t,slots:{backdrop:d8e},slotProps:{backdrop:{timeout:500}},...f,children:JM(ZM,{children:[JM(YM,{children:[o&&ba("div",{style:{display:"flex",alignItems:"center"},children:o}),r&&ba(m8e,{children:ba("div",{style:{display:"flex",alignItems:"center"},children:ba(Ul,{children:r})})}),ba("div",{style:{display:"flex",alignItems:"center"},children:a&&ba("div",{children:n})})]}),ba(h2,{children:ba(XM,{children:s})}),!l&&ba(x2,{children:ba(QM,{children:i})})]})})}var eL=p8e;import{jsx as tL}from"react/jsx-runtime";function c8e({children:e,style:t,...r}){return tL(Ul,{sx:t,...r,children:tL(G,{sx:{flexGrow:1,fontSize:"1.25rem",textAlign:"center"},variant:"h6",children:e})})}var T2=c8e;import{jsx as m6,jsxs as c6}from"react/jsx-runtime";function x8e({icon:e,message:t,pointerLabel:r,poiner:o=!1}){return c6("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",minHeight:"50vh"},children:[o&&c6(xe,{style:{display:"flex",width:"100%",padding:"0 40px"},children:[m6(G4,{}),m6(G,{sx:{fontSize:24,color:"#808080",px:5,py:2,lineHeight:1.5,letterSpacing:"0.15px",display:"flex",alignItems:"flex-end",marginBottom:"-2rem"},children:r})]}),c6(xe,{style:{marginTop:"120px"},children:[e,m6(G,{sx:{fontSize:"1.5rem",color:"#808080",px:5,py:2,lineHeight:1},children:t})]})]})}var rL=x8e;import{styled as h6}from"@mui/material";import{createContext as h8e,Component as g8e,createElement as oL,useContext as xgt,useState as hgt,useMemo as ggt,forwardRef as Tgt}from"react";var T8e=h8e(null),x6={didCatch:!1,error:null},Mp=class extends g8e{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=x6}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){let{error:t}=this.state;if(t!==null){for(var r,o,a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];(r=(o=this.props).onReset)===null||r===void 0||r.call(o,{args:n,reason:"imperative-api"}),this.setState(x6)}}componentDidCatch(t,r){var o,a;(o=(a=this.props).onError)===null||o===void 0||o.call(a,t,r)}componentDidUpdate(t,r){let{didCatch:o}=this.state,{resetKeys:a}=this.props;if(o&&r.error!==null&&S8e(t.resetKeys,a)){var n,i;(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(x6)}}render(){let{children:t,fallbackRender:r,FallbackComponent:o,fallback:a}=this.props,{didCatch:n,error:i}=this.state,l=t;if(n){let s={error:i,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")l=r(s);else if(o)l=oL(o,s);else if(a!==void 0)l=a;else throw i}return oL(T8e.Provider,{value:{didCatch:n,error:i,resetErrorBoundary:this.resetErrorBoundary}},l)}};function S8e(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,o)=>!Object.is(r,t[o]))}import{Fragment as b8e,jsx as Ro,jsxs as Lp}from"react/jsx-runtime";var C8e=h6(G)(({theme:e})=>({color:e.palette.text.default,fontWeight:"normal",marginTop:"2px",marginBottom:"2px",fontSize:"1.15rem"})),aL=h6(To)(({theme:e})=>({color:e.palette.border.brand,textDecoration:"underline",cursor:"pointer"})),y8e=h6("div")(({theme:e})=>({display:"flex",flexDirection:"column",backgroundColor:e.palette.background.code,color:e.palette.text.tertiary,padding:".85rem",borderRadius:".2rem",marginBlock:".5rem"}));function g6({error:e,children:t,showPackageInfo:r,version:o}){return Lp("div",{role:"alert",children:[Ro("h2",{children:"Uh-oh!\u{1F614} Please pardon the mesh."}),Lp(y8e,{children:[Lp("code",{children:[Ro("strong",{children:"Error: "}),e.message]}),Ro("br",{}),r&&Lp(b8e,{children:[Ro("strong",{children:"Version:"})," ",o]})]}),Lp(C8e,{children:["We apologize for the inconvenience. The issue may be on our end. If troubleshooting doesn't work, please check out our support channels"," ",Ro(aL,{href:"https://discuss.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Discuss Forum"})," "," or ",Ro(aL,{href:"https://slack.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Slack"})]}),Ro(K,{children:t})]})}var nL=(e,t)=>{let r=window.location.href,o=new Date().toLocaleString();console.log("Error Caught Inside Boundary --reportError",e,"Info",t,"Page URL:",r,"Timestamp:",o)},jr=({customFallback:e,children:t,onErrorCaught:r})=>{let o=window.location.href,a=new Date().toLocaleString();return Ro(Mp,{FallbackComponent:e||(i=>Ro(g6,{...i,pageUrl:o,timestamp:a})),onError:(i,l)=>{r?.(i.message),nL(i,l)},children:t})},iL=({Component:e,errorHandlingProps:t={children:null}})=>Ro(jr,{...t,children:Ro(e,{})}),lL=({Component:e})=>Ro(Mp,{FallbackComponent:()=>null,onError:nL,children:Ro(e,{})});import v6 from"@mui/material/Typography";import{useState as Bp}from"react";import{styled as zo}from"@mui/material";import{useRef as O8e,useState as C2}from"react";import{useState as v8e}from"react";import{Fragment as E8e,jsx as S2,jsxs as R8e}from"react/jsx-runtime";function w8e({content:e,fontSize:t,fontWeight:r=400,variant:o="standard",bgColor:a="#141414",icon:n=S2(k4,{fontSize:"small"}),...i}){let[l,s]=v8e(null);return R8e(E8e,{children:[S2($e,{size:"small",onClick:p=>{s(p.currentTarget)},sx:{color:"inherit",padding:"2px",verticalAlign:"middle"},children:n}),S2(wd,{open:!!l,anchorEl:l,onClose:()=>{s(null)},disablePortal:!0,container:l?.ownerDocument?.body,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},PaperProps:{sx:{background:a,zIndex:1501,opacity:"1",color:Ue,maxWidth:"500px",fontSize:t||(o==="standard"?"1rem":"0.75rem"),fontWeight:r,borderRadius:"0.5rem",padding:o==="standard"?"0.9rem":"0.5rem 0.75rem",boxShadow:"rgba(0, 0, 0, 0.6) 0px 4px 10px, rgba(0, 0, 0, 0.5) 0px 2px 4px"}},...i,children:typeof e=="string"?S2(mf,{content:e}):e})]})}var T6=w8e;import{jsx as Xa,jsxs as Dp}from"react/jsx-runtime";var hf=zo($e)`
60
60
  && {
61
61
  & svg {
62
62
  fill: #fff;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sistent/sistent",
3
- "version": "0.15.1",
3
+ "version": "0.15.3",
4
4
  "description": "Reusable React Components and SVG Icons library",
5
5
  "repository": {
6
6
  "type": "git",