2022-12-31 12:40:11 -08:00
|
|
|
import { MouseEvent } from 'react';
|
2022-12-28 01:58:25 -08:00
|
|
|
import { Stack, Grid, Accordion, Center, Group } from '@mantine/core';
|
2022-12-31 12:40:11 -08:00
|
|
|
import { closeAllModals, openModal } from '@mantine/modals';
|
2022-12-19 15:59:14 -08:00
|
|
|
import { SpotlightProvider } from '@mantine/spotlight';
|
|
|
|
|
import { AnimatePresence, motion } from 'framer-motion';
|
|
|
|
|
import { BsCollection } from 'react-icons/bs';
|
2023-01-06 14:27:31 -08:00
|
|
|
import { Button, MotionStack, ScrollArea, TextInput } from '/@/renderer/components';
|
2023-01-06 01:48:56 -08:00
|
|
|
import { MdOutlineFeaturedPlayList, MdFeaturedPlayList } from 'react-icons/md';
|
2022-12-19 15:59:14 -08:00
|
|
|
import {
|
2022-12-31 12:40:11 -08:00
|
|
|
RiAddFill,
|
2022-12-28 01:58:25 -08:00
|
|
|
RiAlbumFill,
|
2022-12-19 15:59:14 -08:00
|
|
|
RiAlbumLine,
|
|
|
|
|
RiArrowDownSLine,
|
|
|
|
|
RiArrowLeftSLine,
|
|
|
|
|
RiArrowRightSLine,
|
2022-12-28 01:58:25 -08:00
|
|
|
RiDatabaseFill,
|
2022-12-19 15:59:14 -08:00
|
|
|
RiDatabaseLine,
|
|
|
|
|
RiDiscLine,
|
2022-12-28 01:58:25 -08:00
|
|
|
RiFlag2Line,
|
2022-12-19 15:59:14 -08:00
|
|
|
RiFolder3Line,
|
2023-01-06 10:46:09 -08:00
|
|
|
RiHome4Fill,
|
|
|
|
|
RiHome4Line,
|
2023-01-06 01:48:56 -08:00
|
|
|
RiListUnordered,
|
2023-01-06 10:46:09 -08:00
|
|
|
RiMusic2Fill,
|
|
|
|
|
RiMusic2Line,
|
2022-12-19 15:59:14 -08:00
|
|
|
RiSearchLine,
|
2022-12-31 12:40:11 -08:00
|
|
|
RiUserVoiceFill,
|
2022-12-19 15:59:14 -08:00
|
|
|
RiUserVoiceLine,
|
|
|
|
|
} from 'react-icons/ri';
|
2022-12-31 12:40:11 -08:00
|
|
|
import { useNavigate, Link, useLocation, generatePath } from 'react-router-dom';
|
2022-12-19 15:59:14 -08:00
|
|
|
import styled from 'styled-components';
|
2023-01-03 01:34:00 -08:00
|
|
|
import {
|
|
|
|
|
PlaylistSidebarItem,
|
|
|
|
|
SidebarItem,
|
|
|
|
|
} from '/@/renderer/features/sidebar/components/sidebar-item';
|
2022-12-19 15:59:14 -08:00
|
|
|
import { AppRoute } from '/@/renderer/router/routes';
|
2023-01-15 21:58:25 -08:00
|
|
|
import {
|
|
|
|
|
useSidebarStore,
|
|
|
|
|
useAppStoreActions,
|
|
|
|
|
useCurrentSong,
|
|
|
|
|
useCurrentServer,
|
|
|
|
|
} from '/@/renderer/store';
|
2022-12-19 15:59:14 -08:00
|
|
|
import { fadeIn } from '/@/renderer/styles';
|
2022-12-31 12:40:11 -08:00
|
|
|
import { CreatePlaylistForm, usePlaylistList } from '/@/renderer/features/playlists';
|
2023-01-15 21:58:25 -08:00
|
|
|
import { LibraryItem, PlaylistListSort, ServerType, SortOrder } from '/@/renderer/api/types';
|
2023-01-03 01:34:00 -08:00
|
|
|
import { usePlayQueueAdd } from '/@/renderer/features/player';
|
|
|
|
|
import { usePlayButtonBehavior } from '/@/renderer/store/settings.store';
|
2022-12-19 15:59:14 -08:00
|
|
|
|
|
|
|
|
const SidebarContainer = styled.div`
|
|
|
|
|
height: 100%;
|
2022-12-31 12:40:11 -08:00
|
|
|
max-height: calc(100vh - 85px); // Account for playerbar
|
2022-12-19 15:59:14 -08:00
|
|
|
user-select: none;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const ImageContainer = styled(motion(Link))<{ height: string }>`
|
|
|
|
|
position: relative;
|
|
|
|
|
height: ${(props) => props.height};
|
|
|
|
|
|
|
|
|
|
${fadeIn};
|
|
|
|
|
animation: fadein 0.2s ease-in-out;
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover button {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const SidebarImage = styled.img`
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
background: var(--placeholder-bg);
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const ActionsContainer = styled(Grid)`
|
|
|
|
|
-webkit-app-region: drag;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const Sidebar = () => {
|
|
|
|
|
const navigate = useNavigate();
|
2022-12-28 01:58:25 -08:00
|
|
|
const location = useLocation();
|
2022-12-19 15:59:14 -08:00
|
|
|
const sidebar = useSidebarStore();
|
|
|
|
|
const { setSidebar } = useAppStoreActions();
|
|
|
|
|
const imageUrl = useCurrentSong()?.imageUrl;
|
2023-01-15 21:58:25 -08:00
|
|
|
const server = useCurrentServer();
|
2023-01-06 01:03:58 -08:00
|
|
|
|
|
|
|
|
const upsizedImageUrl = imageUrl
|
|
|
|
|
?.replace(/size=\d+/, 'size=300')
|
|
|
|
|
.replace(/width=\d+/, 'width=300')
|
|
|
|
|
.replace(/height=\d+/, 'height=300');
|
|
|
|
|
|
2022-12-19 15:59:14 -08:00
|
|
|
const showImage = sidebar.image;
|
2023-01-03 01:34:00 -08:00
|
|
|
const handlePlayQueueAdd = usePlayQueueAdd();
|
|
|
|
|
const playButtonBehavior = usePlayButtonBehavior();
|
|
|
|
|
|
|
|
|
|
const handlePlayPlaylist = (id: string) => {
|
|
|
|
|
handlePlayQueueAdd?.({
|
|
|
|
|
byItemType: {
|
|
|
|
|
id: [id],
|
|
|
|
|
type: LibraryItem.PLAYLIST,
|
|
|
|
|
},
|
|
|
|
|
play: playButtonBehavior,
|
|
|
|
|
});
|
|
|
|
|
};
|
2022-12-19 15:59:14 -08:00
|
|
|
|
2022-12-31 12:40:11 -08:00
|
|
|
const playlistsQuery = usePlaylistList({
|
2023-01-01 13:58:05 -08:00
|
|
|
limit: 100,
|
2022-12-31 12:40:11 -08:00
|
|
|
sortBy: PlaylistListSort.NAME,
|
|
|
|
|
sortOrder: SortOrder.ASC,
|
|
|
|
|
startIndex: 0,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const handleCreatePlaylistModal = (e: MouseEvent<HTMLButtonElement>) => {
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
|
|
|
|
|
openModal({
|
|
|
|
|
children: <CreatePlaylistForm onCancel={() => closeAllModals()} />,
|
2023-01-15 21:58:25 -08:00
|
|
|
size: server?.type === ServerType?.NAVIDROME ? 'lg' : 'sm',
|
2022-12-31 12:40:11 -08:00
|
|
|
title: 'Create Playlist',
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
2022-12-19 15:59:14 -08:00
|
|
|
return (
|
|
|
|
|
<SidebarContainer>
|
|
|
|
|
<Stack
|
2022-12-31 12:40:11 -08:00
|
|
|
h="100%"
|
2022-12-19 15:59:14 -08:00
|
|
|
justify="space-between"
|
|
|
|
|
spacing={0}
|
|
|
|
|
>
|
2023-01-06 14:27:31 -08:00
|
|
|
<MotionStack
|
|
|
|
|
layout="position"
|
2022-12-31 12:40:11 -08:00
|
|
|
spacing={0}
|
|
|
|
|
sx={{ maxHeight: showImage ? `calc(100% - ${sidebar.leftWidth})` : '100%' }}
|
2022-12-19 15:59:14 -08:00
|
|
|
>
|
|
|
|
|
<ActionsContainer p={10}>
|
|
|
|
|
<Grid.Col span={8}>
|
|
|
|
|
<SpotlightProvider actions={[]}>
|
|
|
|
|
<TextInput
|
|
|
|
|
disabled
|
|
|
|
|
readOnly
|
|
|
|
|
icon={<RiSearchLine />}
|
|
|
|
|
placeholder="Search"
|
|
|
|
|
rightSectionWidth={90}
|
|
|
|
|
// onClick={() => openSpotlight()}
|
|
|
|
|
/>
|
|
|
|
|
</SpotlightProvider>
|
|
|
|
|
</Grid.Col>
|
|
|
|
|
<Grid.Col span={4}>
|
|
|
|
|
<Group
|
|
|
|
|
grow
|
|
|
|
|
spacing={5}
|
|
|
|
|
>
|
|
|
|
|
<Button
|
|
|
|
|
px={5}
|
|
|
|
|
sx={{ color: 'var(--titlebar-fg)' }}
|
|
|
|
|
variant="default"
|
|
|
|
|
onClick={() => navigate(-1)}
|
|
|
|
|
>
|
|
|
|
|
<RiArrowLeftSLine size={20} />
|
|
|
|
|
</Button>
|
|
|
|
|
<Button
|
|
|
|
|
px={5}
|
|
|
|
|
sx={{ color: 'var(--titlebar-fg)' }}
|
|
|
|
|
variant="default"
|
|
|
|
|
onClick={() => navigate(1)}
|
|
|
|
|
>
|
|
|
|
|
<RiArrowRightSLine size={20} />
|
|
|
|
|
</Button>
|
|
|
|
|
</Group>
|
|
|
|
|
</Grid.Col>
|
|
|
|
|
</ActionsContainer>
|
2022-12-31 12:40:11 -08:00
|
|
|
|
|
|
|
|
<ScrollArea
|
|
|
|
|
offsetScrollbars={false}
|
|
|
|
|
scrollbarSize={6}
|
2022-12-19 15:59:14 -08:00
|
|
|
>
|
2022-12-31 12:40:11 -08:00
|
|
|
<Stack spacing={0}>
|
|
|
|
|
<SidebarItem
|
|
|
|
|
px="1rem"
|
|
|
|
|
py="0.5rem"
|
|
|
|
|
to={AppRoute.HOME}
|
|
|
|
|
>
|
2023-01-06 01:48:56 -08:00
|
|
|
<Group>
|
2022-12-31 12:40:11 -08:00
|
|
|
{location.pathname === AppRoute.HOME ? (
|
2023-01-06 10:46:09 -08:00
|
|
|
<RiHome4Fill size="1.3em" />
|
2022-12-31 12:40:11 -08:00
|
|
|
) : (
|
2023-01-06 10:46:09 -08:00
|
|
|
<RiHome4Line size="1.3em" />
|
2022-12-31 12:40:11 -08:00
|
|
|
)}
|
|
|
|
|
Home
|
|
|
|
|
</Group>
|
|
|
|
|
</SidebarItem>
|
|
|
|
|
<Accordion
|
|
|
|
|
multiple
|
|
|
|
|
styles={{
|
|
|
|
|
control: {
|
|
|
|
|
'&:hover': { background: 'none', color: 'var(--sidebar-fg-hover)' },
|
|
|
|
|
color: 'var(--sidebar-fg)',
|
|
|
|
|
padding: '1rem 1rem',
|
|
|
|
|
transition: 'color 0.2s ease-in-out',
|
|
|
|
|
},
|
|
|
|
|
item: { borderBottom: 'none', color: 'var(--sidebar-fg)' },
|
|
|
|
|
itemTitle: { color: 'var(--sidebar-fg)' },
|
|
|
|
|
panel: { padding: '0 1rem' },
|
|
|
|
|
}}
|
|
|
|
|
value={sidebar.expanded}
|
|
|
|
|
onChange={(e) => setSidebar({ expanded: e })}
|
|
|
|
|
>
|
|
|
|
|
<Accordion.Item value="library">
|
|
|
|
|
<Accordion.Control>
|
2023-01-06 01:48:56 -08:00
|
|
|
<Group>
|
2022-12-31 12:40:11 -08:00
|
|
|
{location.pathname.includes('/library/') ? (
|
2023-01-06 01:48:56 -08:00
|
|
|
<RiDatabaseFill size="1.3em" />
|
2022-12-28 01:58:25 -08:00
|
|
|
) : (
|
2023-01-06 01:48:56 -08:00
|
|
|
<RiDatabaseLine size="1.3em" />
|
2022-12-28 01:58:25 -08:00
|
|
|
)}
|
2022-12-31 12:40:11 -08:00
|
|
|
Library
|
2022-12-19 15:59:14 -08:00
|
|
|
</Group>
|
2022-12-31 12:40:11 -08:00
|
|
|
</Accordion.Control>
|
|
|
|
|
<Accordion.Panel>
|
|
|
|
|
<SidebarItem to={AppRoute.LIBRARY_ALBUMS}>
|
2023-01-06 01:48:56 -08:00
|
|
|
<Group>
|
2022-12-31 12:40:11 -08:00
|
|
|
{location.pathname === AppRoute.LIBRARY_ALBUMS ? (
|
2023-01-06 01:48:56 -08:00
|
|
|
<RiAlbumFill size="1.1em" />
|
2022-12-31 12:40:11 -08:00
|
|
|
) : (
|
2023-01-06 01:48:56 -08:00
|
|
|
<RiAlbumLine size="1.1em" />
|
2022-12-31 12:40:11 -08:00
|
|
|
)}
|
|
|
|
|
Albums
|
|
|
|
|
</Group>
|
|
|
|
|
</SidebarItem>
|
|
|
|
|
<SidebarItem to={AppRoute.LIBRARY_SONGS}>
|
2023-01-06 01:48:56 -08:00
|
|
|
<Group>
|
2022-12-31 12:40:11 -08:00
|
|
|
{location.pathname === AppRoute.LIBRARY_SONGS ? (
|
2023-01-06 10:46:09 -08:00
|
|
|
<RiMusic2Fill size="1.1em" />
|
2022-12-31 12:40:11 -08:00
|
|
|
) : (
|
2023-01-06 10:46:09 -08:00
|
|
|
<RiMusic2Line size="1.1em" />
|
2022-12-31 12:40:11 -08:00
|
|
|
)}
|
|
|
|
|
Tracks
|
|
|
|
|
</Group>
|
|
|
|
|
</SidebarItem>
|
2023-01-12 18:43:25 -08:00
|
|
|
<SidebarItem to={AppRoute.LIBRARY_ALBUM_ARTISTS}>
|
2023-01-06 01:48:56 -08:00
|
|
|
<Group>
|
2023-01-12 18:43:25 -08:00
|
|
|
{location.pathname === AppRoute.LIBRARY_ALBUM_ARTISTS ? (
|
2023-01-06 01:48:56 -08:00
|
|
|
<RiUserVoiceFill size="1.1em" />
|
2022-12-31 12:40:11 -08:00
|
|
|
) : (
|
2023-01-06 01:48:56 -08:00
|
|
|
<RiUserVoiceLine size="1.1em" />
|
2022-12-31 12:40:11 -08:00
|
|
|
)}
|
|
|
|
|
Album Artists
|
|
|
|
|
</Group>
|
|
|
|
|
</SidebarItem>
|
|
|
|
|
<SidebarItem
|
|
|
|
|
disabled
|
|
|
|
|
to={AppRoute.LIBRARY_FOLDERS}
|
|
|
|
|
>
|
2023-01-06 01:48:56 -08:00
|
|
|
<Group>
|
|
|
|
|
<RiFlag2Line size="1.1em" />
|
2022-12-31 12:40:11 -08:00
|
|
|
Genres
|
|
|
|
|
</Group>
|
|
|
|
|
</SidebarItem>
|
|
|
|
|
<SidebarItem
|
|
|
|
|
disabled
|
|
|
|
|
to={AppRoute.LIBRARY_FOLDERS}
|
|
|
|
|
>
|
2023-01-06 01:48:56 -08:00
|
|
|
<Group>
|
|
|
|
|
<RiFolder3Line size="1.1em" />
|
2022-12-31 12:40:11 -08:00
|
|
|
Folders
|
|
|
|
|
</Group>
|
|
|
|
|
</SidebarItem>
|
|
|
|
|
</Accordion.Panel>
|
|
|
|
|
</Accordion.Item>
|
|
|
|
|
<Accordion.Item value="collections">
|
|
|
|
|
<Accordion.Control disabled>
|
2022-12-28 01:58:25 -08:00
|
|
|
<Group>
|
2023-01-06 01:48:56 -08:00
|
|
|
<BsCollection size="1.3em" />
|
2022-12-31 12:40:11 -08:00
|
|
|
Collections
|
2022-12-28 01:58:25 -08:00
|
|
|
</Group>
|
2022-12-31 12:40:11 -08:00
|
|
|
</Accordion.Control>
|
|
|
|
|
<Accordion.Panel />
|
|
|
|
|
</Accordion.Item>
|
|
|
|
|
<Accordion.Item value="playlists">
|
|
|
|
|
<Accordion.Control>
|
|
|
|
|
<Group
|
|
|
|
|
noWrap
|
|
|
|
|
position="apart"
|
|
|
|
|
>
|
|
|
|
|
<Group noWrap>
|
2023-01-06 01:48:56 -08:00
|
|
|
{location.pathname.includes('/playlists/') ? (
|
|
|
|
|
<MdFeaturedPlayList size="1.3em" />
|
|
|
|
|
) : (
|
|
|
|
|
<MdOutlineFeaturedPlayList size="1.3em" />
|
|
|
|
|
)}
|
2022-12-31 12:40:11 -08:00
|
|
|
Playlists
|
|
|
|
|
</Group>
|
|
|
|
|
<Group
|
|
|
|
|
noWrap
|
2023-01-06 01:48:56 -08:00
|
|
|
spacing="sm"
|
2022-12-31 12:40:11 -08:00
|
|
|
>
|
|
|
|
|
<Button
|
|
|
|
|
compact
|
|
|
|
|
component="div"
|
2023-01-06 01:48:56 -08:00
|
|
|
h="1.5em"
|
2022-12-31 12:40:11 -08:00
|
|
|
tooltip={{ label: 'Create playlist', openDelay: 500 }}
|
2023-01-06 01:48:56 -08:00
|
|
|
variant="default"
|
2022-12-31 12:40:11 -08:00
|
|
|
onClick={handleCreatePlaylistModal}
|
|
|
|
|
>
|
2023-01-06 01:48:56 -08:00
|
|
|
<RiAddFill size="1em" />
|
2022-12-31 12:40:11 -08:00
|
|
|
</Button>
|
|
|
|
|
<Button
|
|
|
|
|
compact
|
|
|
|
|
component={Link}
|
2023-01-06 01:48:56 -08:00
|
|
|
h="1.5em"
|
2022-12-31 12:40:11 -08:00
|
|
|
to={AppRoute.PLAYLISTS}
|
|
|
|
|
tooltip={{ label: 'Playlist list', openDelay: 500 }}
|
2023-01-06 01:48:56 -08:00
|
|
|
variant="default"
|
2022-12-31 12:40:11 -08:00
|
|
|
onClick={(e) => e.stopPropagation()}
|
|
|
|
|
>
|
2023-01-06 01:48:56 -08:00
|
|
|
<RiListUnordered size="1em" />
|
2022-12-31 12:40:11 -08:00
|
|
|
</Button>
|
|
|
|
|
</Group>
|
2022-12-19 15:59:14 -08:00
|
|
|
</Group>
|
2022-12-31 12:40:11 -08:00
|
|
|
</Accordion.Control>
|
|
|
|
|
<Accordion.Panel>
|
|
|
|
|
{playlistsQuery?.data?.items?.map((playlist) => (
|
2023-01-03 01:34:00 -08:00
|
|
|
<PlaylistSidebarItem
|
2022-12-31 12:40:11 -08:00
|
|
|
key={`sidebar-playlist-${playlist.id}`}
|
2023-01-03 01:34:00 -08:00
|
|
|
handlePlay={() => handlePlayPlaylist(playlist.id)}
|
2022-12-31 12:40:11 -08:00
|
|
|
to={generatePath(AppRoute.PLAYLISTS_DETAIL, { playlistId: playlist.id })}
|
|
|
|
|
>
|
|
|
|
|
{playlist.name}
|
2023-01-03 01:34:00 -08:00
|
|
|
</PlaylistSidebarItem>
|
2022-12-31 12:40:11 -08:00
|
|
|
))}
|
|
|
|
|
</Accordion.Panel>
|
|
|
|
|
</Accordion.Item>
|
|
|
|
|
</Accordion>
|
|
|
|
|
</Stack>
|
|
|
|
|
</ScrollArea>
|
2023-01-06 14:27:31 -08:00
|
|
|
</MotionStack>
|
2022-12-19 15:59:14 -08:00
|
|
|
<AnimatePresence
|
|
|
|
|
initial={false}
|
2023-01-06 14:27:31 -08:00
|
|
|
mode="popLayout"
|
2022-12-19 15:59:14 -08:00
|
|
|
>
|
|
|
|
|
{showImage && (
|
|
|
|
|
<ImageContainer
|
|
|
|
|
key="sidebar-image"
|
|
|
|
|
animate={{ opacity: 1, y: 0 }}
|
2023-01-06 14:27:31 -08:00
|
|
|
exit={{ opacity: 0, y: 200 }}
|
2022-12-19 15:59:14 -08:00
|
|
|
height={sidebar.leftWidth}
|
|
|
|
|
initial={{ opacity: 0, y: 200 }}
|
|
|
|
|
to={AppRoute.NOW_PLAYING}
|
|
|
|
|
transition={{ duration: 0.3, ease: 'easeInOut' }}
|
|
|
|
|
>
|
2023-01-06 01:03:58 -08:00
|
|
|
{upsizedImageUrl ? (
|
2022-12-19 15:59:14 -08:00
|
|
|
<SidebarImage
|
|
|
|
|
loading="eager"
|
2023-01-06 01:03:58 -08:00
|
|
|
src={upsizedImageUrl}
|
2022-12-19 15:59:14 -08:00
|
|
|
/>
|
|
|
|
|
) : (
|
|
|
|
|
<Center sx={{ background: 'var(--placeholder-bg)', height: '100%' }}>
|
|
|
|
|
<RiDiscLine
|
|
|
|
|
color="var(--placeholder-fg)"
|
|
|
|
|
size={50}
|
|
|
|
|
/>
|
|
|
|
|
</Center>
|
|
|
|
|
)}
|
|
|
|
|
<Button
|
|
|
|
|
compact
|
|
|
|
|
opacity={0.8}
|
|
|
|
|
radius={100}
|
|
|
|
|
size="sm"
|
|
|
|
|
sx={{ position: 'absolute', right: 5, top: 5 }}
|
2023-01-06 01:59:37 -08:00
|
|
|
tooltip={{ label: 'Collapse', openDelay: 500 }}
|
2022-12-19 15:59:14 -08:00
|
|
|
variant="default"
|
|
|
|
|
onClick={(e) => {
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
setSidebar({ image: false });
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<RiArrowDownSLine
|
|
|
|
|
color="white"
|
|
|
|
|
size={20}
|
|
|
|
|
/>
|
|
|
|
|
</Button>
|
|
|
|
|
</ImageContainer>
|
|
|
|
|
)}
|
|
|
|
|
</AnimatePresence>
|
|
|
|
|
</Stack>
|
|
|
|
|
</SidebarContainer>
|
|
|
|
|
);
|
|
|
|
|
};
|