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W,CAAAA,GAAOzV,SAAS,CAAG,CACjB2B,SAAU1B,IAAAA,IAAc,yDClCnB,IAAMqB,EAAQ,CACnB6C,MAAO,IACP5C,KAAM,CACJC,IAAK,CACHC,MAAO,kBACPoU,aAAc,yBACdC,eAAgB,4BAChBC,cAAe,0BACjB,EACAC,aAAc,CACZC,QAAS,6BACX,CACF,EACAxR,UAAW,CACTN,MAAO,sBACP+K,QAAS,qBACTgH,MAAO,mBACPlR,YAAa,CACXb,MAAO,yBACPc,OAAQ,gCACRE,YAAa,sCACbD,KAAM,8BACNE,MAAO,8BACT,EACA+Q,aAAc,mBACdvR,MAAO,CACLA,MAAO,mBACPC,MAAO,mBACPC,OAAQ,mBACV,EACAgB,SAAU,CACRsQ,gBAAiB,wCACjBtQ,SAAU,uBACVb,OAAQ,6BACRoR,IAAK,0BACLtQ,QAAS,8BACTC,UAAW,gCACXsQ,SAAU,+BACVrQ,IAAK,0BACLC,SAAU,+BACVC,SAAU,+BACVE,SAAU,+BACVkQ,SAAU,8BACZ,CACF,EACA,IAAK,OACL,IAAK,OACL,IAAK,OACL,IAAK,MACP","sources":["webpack://_N_E/./src/components/router-link.tsx","webpack://_N_E/./src/components/scrollbar.tsx","webpack://_N_E/./src/components/seo.tsx","webpack://_N_E/./src/hooks/use-auth.ts","webpack://_N_E/./src/hooks/use-popover.tsx","webpack://_N_E/./src/hooks/use-router.ts","webpack://_N_E/./src/hooks/use-settings.ts","webpack://_N_E/./src/guards/auth-guard.tsx","webpack://_N_E/./src/hocs/with-auth-guard.tsx","webpack://_N_E/./src/icons/untitled-ui/duocolor/line-chart-up-04.tsx","webpack://_N_E/./src/icons/untitled-ui/duocolor/home-smile.tsx","webpack://_N_E/./src/layouts/dashboard/config.tsx","webpack://_N_E/./src/hooks/use-pathname.ts","webpack://_N_E/./src/layouts/dashboard/tenant-switch/tenant-popover.tsx","webpack://_N_E/./src/layouts/dashboard/tenant-switch/index.tsx","webpack://_N_E/./src/layouts/dashboard/mobile-nav/mobile-nav-item.tsx","webpack://_N_E/./src/layouts/dashboard/mobile-nav/mobile-nav-section.tsx","webpack://_N_E/./src/layouts/dashboard/mobile-nav/index.tsx","webpack://_N_E/./src/layouts/dashboard/vertical-layout/side-nav-item.tsx","webpack://_N_E/./src/layouts/dashboard/vertical-layout/side-nav-section.tsx","webpack://_N_E/./src/layouts/dashboard/vertical-layout/side-nav.tsx","webpack://_N_E/./src/layouts/dashboard/account-button/account-popover.tsx","webpack://_N_E/./src/layouts/dashboard/account-button/index.tsx","webpack://_N_E/./src/components/presence.tsx","webpack://_N_E/./src/utils/date-locale.ts","webpack://_N_E/./src/layouts/dashboard/contacts-button/contacts-popover.tsx","webpack://_N_E/./src/layouts/dashboard/contacts-button/index.tsx","webpack://_N_E/./src/layouts/dashboard/vertical-layout/top-nav.tsx","webpack://_N_E/./src/layouts/dashboard/vertical-layout/use-mobile-nav.ts","webpack://_N_E/./src/layouts/dashboard/vertical-layout/index.tsx","webpack://_N_E/./src/layouts/dashboard/index.tsx","webpack://_N_E/./src/paths.ts","webpack://_N_E/"],"sourcesContent":["import { forwardRef } from 'react';\r\nimport type { LinkProps } from 'next/link';\r\nimport Link from 'next/link';\r\n\r\n/**\r\n * This is a wrapper over `next/link` component.\r\n * We use this to help us maintain consistency between CRA and Next.js\r\n */\r\nexport const RouterLink = forwardRef((props: LinkProps, ref: any) => (\r\n \r\n));\r\n","import SimpleBar from 'simplebar-react';\r\nimport { styled } from '@mui/material/styles';\r\n\r\nexport const Scrollbar = styled(SimpleBar)``;\r\n","import type { FC } from 'react';\r\nimport Head from 'next/head';\r\nimport PropTypes from 'prop-types';\r\n\r\ninterface SeoProps {\r\n title?: string;\r\n}\r\n\r\nexport const Seo: FC = (props) => {\r\n const { title } = props;\r\n\r\n const fullTitle = title\r\n ? title + ' | Bilhandel Dashboard'\r\n : 'Bilhandel Dashboard';\r\n\r\n return (\r\n \r\n {fullTitle}\r\n \r\n );\r\n};\r\n\r\nSeo.propTypes = {\r\n title: PropTypes.string,\r\n};\r\n","import { useContext } from 'react';\r\nimport type { AuthContextType as JwtAuthContextType } from 'src/contexts/auth/jwt-context';\r\nimport { AuthContext } from 'src/contexts/auth/jwt-context';\r\n\r\ntype AuthContextType = JwtAuthContextType;\r\n\r\nexport const useAuth = () => useContext(AuthContext) as T;\r\n","import type { MutableRefObject } from 'react';\r\nimport { useCallback, useRef, useState } from 'react';\r\n\r\ninterface PopoverController {\r\n anchorRef: MutableRefObject;\r\n handleOpen: () => void;\r\n handleClose: () => void;\r\n handleToggle: () => void;\r\n open: boolean;\r\n}\r\n\r\nexport function usePopover(): PopoverController {\r\n const anchorRef = useRef(null);\r\n const [open, setOpen] = useState(false);\r\n\r\n const handleOpen = useCallback(\r\n (): void => {\r\n setOpen(true);\r\n },\r\n []\r\n );\r\n\r\n const handleClose = useCallback(\r\n (): void => {\r\n setOpen(false);\r\n },\r\n []\r\n );\r\n\r\n const handleToggle = useCallback(\r\n (): void => {\r\n setOpen((prevState) => !prevState);\r\n },\r\n []\r\n );\r\n\r\n return {\r\n anchorRef,\r\n handleClose,\r\n handleOpen,\r\n handleToggle,\r\n open\r\n };\r\n}\r\n","// NOTE: We only re-export the useRouter to maintain consistency between CRA and Next.js\r\n\r\nexport { useRouter } from 'next/navigation';\r\n","import { useContext } from 'react';\r\nimport { SettingsContext } from 'src/contexts/settings-context';\r\n\r\nexport const useSettings = () => useContext(SettingsContext);\r\n","import type { FC, ReactNode } from 'react';\r\nimport { useCallback, useEffect, useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { useAuth } from 'src/hooks/use-auth';\r\nimport { useRouter } from 'src/hooks/use-router';\r\nimport { paths } from 'src/paths';\r\nimport { Issuer } from 'src/utils/auth';\r\n\r\nconst loginPaths: Record = {\r\n [Issuer.JWT]: paths.auth.jwt.login,\r\n};\r\n\r\ninterface AuthGuardProps {\r\n children: ReactNode;\r\n}\r\n\r\nexport const AuthGuard: FC = (props) => {\r\n const { children } = props;\r\n const router = useRouter();\r\n const { isAuthenticated, issuer } = useAuth();\r\n const [checked, setChecked] = useState(false);\r\n\r\n const check = useCallback(() => {\r\n if (!isAuthenticated) {\r\n const searchParams = new URLSearchParams({\r\n returnTo: window.location.href,\r\n }).toString();\r\n const href = loginPaths[issuer] + `?${searchParams}`;\r\n router.replace(href);\r\n } else {\r\n setChecked(true);\r\n }\r\n }, [isAuthenticated, issuer, router]);\r\n\r\n // Only check on mount, this allows us to redirect the user manually when auth state changes\r\n useEffect(\r\n () => {\r\n check();\r\n },\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n []\r\n );\r\n\r\n if (!checked) {\r\n return null;\r\n }\r\n\r\n // If got here, it means that the redirect did not occur, and that tells us that the user is\r\n // authenticated / authorized.\r\n\r\n return <>{children};\r\n};\r\n\r\nAuthGuard.propTypes = {\r\n children: PropTypes.node,\r\n};\r\n","import type { FC } from 'react';\r\nimport { AuthGuard } from 'src/guards/auth-guard';\r\n\r\nexport const withAuthGuard =

(Component: FC

): FC

=> (props: P) => (\r\n \r\n \r\n \r\n);\r\n","import type { SVGProps } from 'react';\r\n\r\nconst LineChartUp04 = (props: SVGProps) => (\r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport default LineChartUp04;\r\n","import type { SVGProps } from 'react';\r\n\r\nconst HomeSmile = (props: SVGProps) => (\r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport default HomeSmile;\r\n","import type { ReactNode } from 'react';\r\nimport { useMemo } from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { SvgIcon } from '@mui/material';\r\nimport LineChartUp04Icon from 'src/icons/untitled-ui/duocolor/line-chart-up-04';\r\nimport { paths } from 'src/paths';\r\nimport EmojiPeopleIcon from '@mui/icons-material/EmojiPeople';\r\nimport FormatListBulletedIcon from '@mui/icons-material/FormatListBulleted';\r\nimport ForumIcon from '@mui/icons-material/Forum';\r\nimport GavelIcon from '@mui/icons-material/Gavel';\r\nimport { useAuctions } from 'src/store/store';\r\nimport HomeSmile from 'src/icons/untitled-ui/duocolor/home-smile';\r\nimport PhotoSizeSelectActualRoundedIcon from '@mui/icons-material/PhotoSizeSelectActualRounded';\r\n\r\nexport interface Item {\r\n disabled?: boolean;\r\n external?: boolean;\r\n icon?: ReactNode;\r\n items?: Item[];\r\n label?: ReactNode;\r\n path?: string;\r\n title: string;\r\n}\r\n\r\nexport interface Section {\r\n items: Item[];\r\n subheader?: string;\r\n}\r\n\r\nexport const useMainSections = () => {\r\n const { t } = useTranslation();\r\n\r\n return useMemo(() => {\r\n return [\r\n {\r\n items: [\r\n {\r\n title: 'Dit overblik',\r\n path: paths.index,\r\n icon: (\r\n \r\n \r\n \r\n ),\r\n }\r\n ],\r\n },\r\n ];\r\n }, []);\r\n};\r\n\r\nexport const useSections = () => {\r\n const { t } = useTranslation();\r\n\r\n return useMemo(() => {\r\n return [\r\n {\r\n items: [\r\n {\r\n title: 'Dine tal',\r\n path: paths.dashboard.index,\r\n icon: (\r\n \r\n \r\n \r\n ),\r\n },\r\n {\r\n title: 'Henvendelser',\r\n icon: (\r\n \r\n \r\n \r\n ),\r\n items: [\r\n {\r\n title: 'Samlet',\r\n path: paths.dashboard.leads.leads,\r\n },\r\n {\r\n title: 'Opkald',\r\n path: paths.dashboard.leads.calls,\r\n },\r\n {\r\n title: 'E-mail',\r\n path: paths.dashboard.leads.emails,\r\n },\r\n ],\r\n },\r\n {\r\n title: 'Annoncer',\r\n icon: (\r\n \r\n \r\n \r\n ),\r\n items: [\r\n {\r\n title: 'Aktive',\r\n path: paths.dashboard.classifieds.active,\r\n },\r\n {\r\n title: 'Solgte',\r\n path: paths.dashboard.classifieds.sold,\r\n },\r\n {\r\n title: 'Prisændringer',\r\n path: paths.dashboard.classifieds.priceChange,\r\n }\r\n ],\r\n },\r\n {\r\n title: 'Video og billeder',\r\n path: paths.dashboard.classifieds.asset,\r\n icon: (\r\n \r\n \r\n \r\n ),\r\n }\r\n ],\r\n },\r\n ];\r\n }, []);\r\n};\r\n\r\nexport const useAuctionSections = () => {\r\n const store = useAuctions();\r\n const activeTitle = `Aktive annoncer ${\r\n store.activeAuctionCount ? `(${store.activeAuctionCount})` : ''\r\n }`.trim();\r\n\r\n return [\r\n {\r\n items: [\r\n {\r\n title: 'Køretøjer til salg',\r\n icon: (\r\n \r\n \r\n \r\n ),\r\n expanded: true,\r\n path: paths.dashboard.auctions.auctions,\r\n items: [\r\n {\r\n title: activeTitle,\r\n path: paths.dashboard.auctions.active,\r\n },\r\n {\r\n title: 'Åbne bud',\r\n path: paths.dashboard.auctions.openbid,\r\n },\r\n {\r\n title: 'Afviste bud',\r\n path: paths.dashboard.auctions.closedbid,\r\n },\r\n {\r\n title: 'Vundne',\r\n path: paths.dashboard.auctions.won,\r\n },\r\n {\r\n title: 'Arkiv',\r\n path: paths.dashboard.auctions.archived,\r\n },\r\n {\r\n title: 'Favoritter',\r\n path: paths.dashboard.auctions.favorite,\r\n },\r\n ],\r\n },\r\n {\r\n title: 'Beskeder',\r\n icon: (\r\n \r\n \r\n \r\n ),\r\n path: paths.dashboard.auctions.messages,\r\n },\r\n ],\r\n },\r\n ];\r\n};\r\n","// NOTE: We only re-export the useRouter to maintain consistency between CRA and Next.js\r\n\r\nexport { usePathname } from 'next/navigation';\r\n","import type { FC } from 'react';\r\nimport { MenuItem, Popover } from '@mui/material';\r\n\r\ninterface TenantPopoverProps {\r\n anchorEl: null | Element;\r\n onChange?: (tenant: string) => void;\r\n onClose?: () => void;\r\n open?: boolean;\r\n tenants: string[];\r\n}\r\n\r\nexport const TenantPopover: FC = (props) => {\r\n const { anchorEl, onChange, onClose, open = false, tenants, ...other } = props;\r\n\r\n return (\r\n \r\n {tenants.map((tenant) => (\r\n onChange?.(tenant)}\r\n >\r\n {tenant}\r\n \r\n ))}\r\n \r\n );\r\n};\r\n","import type { FC } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport ChevronDownIcon from '@untitled-ui/icons-react/build/esm/ChevronDown';\r\nimport { SxProps } from '@mui/system';\r\nimport { Box, IconButton, Stack, SvgIcon, Typography } from '@mui/material';\r\nimport { usePopover } from 'src/hooks/use-popover';\r\nimport { TenantPopover } from './tenant-popover';\r\nimport { useAuth } from 'src/hooks/use-auth';\r\n\r\nconst tenants: string[] = ['Aunsbjerg Horsens'];\r\n\r\ninterface TenantSwitchProps {\r\n sx?: SxProps;\r\n}\r\n\r\nexport const TenantSwitch: FC = (props) => {\r\n const popover = usePopover();\r\n const { user } = useAuth();\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n Bilhandel\r\n \r\n \r\n {user?.name}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nTenantSwitch.propTypes = {\r\n // @ts-ignore\r\n sx: PropTypes.object,\r\n};\r\n","import type { FC, ReactNode } from 'react';\r\nimport { useCallback, useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport ChevronDownIcon from '@untitled-ui/icons-react/build/esm/ChevronDown';\r\nimport ChevronRightIcon from '@untitled-ui/icons-react/build/esm/ChevronRight';\r\nimport { Box, ButtonBase, Collapse, SvgIcon } from '@mui/material';\r\nimport { RouterLink } from 'src/components/router-link';\r\n\r\ninterface MobileNavItemProps {\r\n active?: boolean;\r\n children?: ReactNode;\r\n depth?: number;\r\n disabled?: boolean;\r\n external?: boolean;\r\n icon?: ReactNode;\r\n label?: ReactNode;\r\n open?: boolean;\r\n path?: string;\r\n title: string;\r\n}\r\n\r\nexport const MobileNavItem: FC = (props) => {\r\n const {\r\n active,\r\n children,\r\n depth = 0,\r\n disabled,\r\n external,\r\n icon,\r\n label,\r\n open: openProp,\r\n path,\r\n title\r\n } = props;\r\n const [open, setOpen] = useState(!!openProp);\r\n\r\n const handleToggle = useCallback(\r\n (): void => {\r\n setOpen((prevOpen) => !prevOpen);\r\n },\r\n []\r\n );\r\n\r\n // Icons can be defined at top level only, deep levels have bullets instead of actual icons.\r\n\r\n let startIcon: ReactNode;\r\n\r\n if (depth === 0) {\r\n startIcon = icon;\r\n } else {\r\n startIcon = (\r\n \r\n \r\n \r\n );\r\n }\r\n\r\n const offset = depth === 0 ? 0 : (depth - 1) * 16;\r\n\r\n // Branch\r\n\r\n if (children) {\r\n return (\r\n

  • \r\n \r\n {startIcon && (\r\n \r\n {startIcon}\r\n \r\n )}\r\n theme.typography.fontFamily,\r\n fontSize: depth > 0 ? 13 : 14,\r\n fontWeight: depth > 0 ? 500 : 600,\r\n lineHeight: '24px',\r\n whiteSpace: 'nowrap',\r\n ...(active && {\r\n color: 'var(--nav-item-active-color)'\r\n }),\r\n ...(disabled && {\r\n color: 'var(--nav-item-disabled-color)'\r\n })\r\n }}\r\n >\r\n {title}\r\n \r\n \r\n {open ? : }\r\n \r\n \r\n \r\n {children}\r\n \r\n
  • \r\n );\r\n }\r\n\r\n // Leaf\r\n\r\n const linkProps = path\r\n ? external\r\n ? {\r\n component: 'a',\r\n href: path,\r\n target: '_blank'\r\n }\r\n : {\r\n component: RouterLink,\r\n href: path\r\n }\r\n : {};\r\n\r\n return (\r\n
  • \r\n \r\n {startIcon && (\r\n \r\n {startIcon}\r\n \r\n )}\r\n theme.typography.fontFamily,\r\n fontSize: depth > 0 ? 13 : 14,\r\n fontWeight: depth > 0 ? 500 : 600,\r\n lineHeight: '24px',\r\n whiteSpace: 'nowrap',\r\n ...(active && {\r\n color: 'var(--nav-item-active-color)'\r\n }),\r\n ...(disabled && {\r\n color: 'var(--nav-item-disabled-color)'\r\n })\r\n }}\r\n >\r\n {title}\r\n \r\n {label && (\r\n \r\n {label}\r\n \r\n )}\r\n \r\n
  • \r\n );\r\n};\r\n\r\nMobileNavItem.propTypes = {\r\n active: PropTypes.bool,\r\n children: PropTypes.node,\r\n depth: PropTypes.number,\r\n disabled: PropTypes.bool,\r\n external: PropTypes.bool,\r\n icon: PropTypes.node,\r\n open: PropTypes.bool,\r\n path: PropTypes.string,\r\n title: PropTypes.string.isRequired\r\n};\r\n","import type { FC, ReactNode } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Box, Stack } from '@mui/material';\r\nimport { MobileNavItem } from './mobile-nav-item';\r\n\r\ninterface Item {\r\n disabled?: boolean;\r\n external?: boolean;\r\n icon?: ReactNode;\r\n items?: Item[];\r\n label?: ReactNode;\r\n path?: string;\r\n title: string;\r\n}\r\n\r\nconst renderItems = ({\r\n depth = 0,\r\n items,\r\n pathname\r\n}: {\r\n depth?: number;\r\n items: Item[];\r\n pathname?: string | null;\r\n}): JSX.Element[] => items.reduce(\r\n (acc: JSX.Element[], item) => reduceChildRoutes({\r\n acc,\r\n depth,\r\n item,\r\n pathname\r\n }),\r\n []\r\n);\r\n\r\nconst reduceChildRoutes = ({\r\n acc,\r\n depth,\r\n item,\r\n pathname\r\n}: {\r\n acc: JSX.Element[];\r\n depth: number;\r\n item: Item;\r\n pathname?: string | null;\r\n}): Array => {\r\n const checkPath = !!(item.path && pathname);\r\n const partialMatch = checkPath ? pathname.includes(item.path!) : false;\r\n const exactMatch = checkPath ? pathname === item.path : false;\r\n\r\n if (item.items) {\r\n acc.push(\r\n \r\n \r\n {renderItems({\r\n depth: depth + 1,\r\n items: item.items,\r\n pathname\r\n })}\r\n \r\n \r\n );\r\n } else {\r\n acc.push(\r\n \r\n );\r\n }\r\n\r\n return acc;\r\n};\r\n\r\ninterface MobileNavSectionProps {\r\n items?: Item[];\r\n pathname?: string | null;\r\n subheader?: string;\r\n}\r\n\r\nexport const MobileNavSection: FC = (props) => {\r\n const { items = [], pathname, subheader = '', ...other } = props;\r\n\r\n return (\r\n \r\n {subheader && (\r\n \r\n {subheader}\r\n \r\n )}\r\n {renderItems({ items, pathname })}\r\n \r\n );\r\n};\r\n\r\nMobileNavSection.propTypes = {\r\n items: PropTypes.array,\r\n pathname: PropTypes.string,\r\n subheader: PropTypes.string\r\n};\r\n","import type { FC } from 'react';\r\nimport { useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport File04Icon from '@untitled-ui/icons-react/build/esm/File04';\r\nimport { Box, Button, Drawer, Stack, SvgIcon, Typography } from '@mui/material';\r\nimport { useTheme } from '@mui/material/styles';\r\nimport { Logo } from 'src/components/logo';\r\nimport { RouterLink } from 'src/components/router-link';\r\nimport { Scrollbar } from 'src/components/scrollbar';\r\nimport { usePathname } from 'src/hooks/use-pathname';\r\nimport { paths } from 'src/paths';\r\nimport type { NavColor } from 'src/types/settings';\r\nimport type { Section } from '../config';\r\nimport { TenantSwitch } from '../tenant-switch';\r\nimport { MobileNavSection } from './mobile-nav-section';\r\nimport Cookies from 'js-cookie';\r\n\r\nconst MOBILE_NAV_WIDTH: number = 280;\r\n\r\nconst useCssVars = (color: NavColor): Record => {\r\n const theme = useTheme();\r\n\r\n return useMemo((): Record => {\r\n switch (color) {\r\n // Blend-in and discreet have no difference on mobile because\r\n // there's a backdrop and differences are not visible\r\n case 'blend-in':\r\n case 'discreet':\r\n if (theme.palette.mode === 'dark') {\r\n return {\r\n '--nav-bg': theme.palette.background.default,\r\n '--nav-color': theme.palette.neutral[100],\r\n '--nav-logo-border': theme.palette.neutral[700],\r\n '--nav-section-title-color': theme.palette.neutral[400],\r\n '--nav-item-color': theme.palette.neutral[400],\r\n '--nav-item-hover-bg': 'rgba(255, 255, 255, 0.04)',\r\n '--nav-item-active-bg': 'rgba(255, 255, 255, 0.04)',\r\n '--nav-item-active-color': theme.palette.text.primary,\r\n '--nav-item-disabled-color': theme.palette.neutral[600],\r\n '--nav-item-icon-color': theme.palette.neutral[500],\r\n '--nav-item-icon-active-color': theme.palette.primary.main,\r\n '--nav-item-icon-disabled-color': theme.palette.neutral[700],\r\n '--nav-item-chevron-color': theme.palette.neutral[700],\r\n '--nav-scrollbar-color': theme.palette.neutral[400],\r\n };\r\n } else {\r\n return {\r\n '--nav-bg': theme.palette.background.default,\r\n '--nav-color': theme.palette.text.primary,\r\n '--nav-logo-border': theme.palette.neutral[100],\r\n '--nav-section-title-color': theme.palette.neutral[400],\r\n '--nav-item-color': theme.palette.text.secondary,\r\n '--nav-item-hover-bg': theme.palette.action.hover,\r\n '--nav-item-active-bg': theme.palette.action.selected,\r\n '--nav-item-active-color': theme.palette.text.primary,\r\n '--nav-item-disabled-color': theme.palette.neutral[400],\r\n '--nav-item-icon-color': theme.palette.neutral[400],\r\n '--nav-item-icon-active-color': theme.palette.primary.main,\r\n '--nav-item-icon-disabled-color': theme.palette.neutral[400],\r\n '--nav-item-chevron-color': theme.palette.neutral[400],\r\n '--nav-scrollbar-color': theme.palette.neutral[900],\r\n };\r\n }\r\n\r\n case 'evident':\r\n if (theme.palette.mode === 'dark') {\r\n return {\r\n '--nav-bg': theme.palette.neutral[800],\r\n '--nav-color': theme.palette.common.white,\r\n '--nav-logo-border': theme.palette.neutral[700],\r\n '--nav-section-title-color': theme.palette.neutral[400],\r\n '--nav-item-color': theme.palette.neutral[400],\r\n '--nav-item-hover-bg': 'rgba(255, 255, 255, 0.04)',\r\n '--nav-item-active-bg': 'rgba(255, 255, 255, 0.04)',\r\n '--nav-item-active-color': theme.palette.common.white,\r\n '--nav-item-disabled-color': theme.palette.neutral[500],\r\n '--nav-item-icon-color': theme.palette.neutral[400],\r\n '--nav-item-icon-active-color': theme.palette.primary.main,\r\n '--nav-item-icon-disabled-color': theme.palette.neutral[500],\r\n '--nav-item-chevron-color': theme.palette.neutral[600],\r\n '--nav-scrollbar-color': theme.palette.neutral[400],\r\n };\r\n } else {\r\n return {\r\n '--nav-bg': theme.palette.neutral[800],\r\n '--nav-color': theme.palette.common.white,\r\n '--nav-logo-border': theme.palette.neutral[700],\r\n '--nav-section-title-color': theme.palette.neutral[400],\r\n '--nav-item-color': theme.palette.neutral[400],\r\n '--nav-item-hover-bg': 'rgba(255, 255, 255, 0.04)',\r\n '--nav-item-active-bg': 'rgba(255, 255, 255, 0.04)',\r\n '--nav-item-active-color': theme.palette.common.white,\r\n '--nav-item-disabled-color': theme.palette.neutral[500],\r\n '--nav-item-icon-color': theme.palette.neutral[400],\r\n '--nav-item-icon-active-color': theme.palette.primary.main,\r\n '--nav-item-icon-disabled-color': theme.palette.neutral[500],\r\n '--nav-item-chevron-color': theme.palette.neutral[600],\r\n '--nav-scrollbar-color': theme.palette.neutral[400],\r\n };\r\n }\r\n\r\n default:\r\n return {};\r\n }\r\n }, [theme, color]);\r\n};\r\n\r\ninterface MobileNavProps {\r\n color?: NavColor;\r\n onClose?: () => void;\r\n open?: boolean;\r\n mainsections?: Section[];\r\n sections?: Section[];\r\n auctionSections?: Section[];\r\n}\r\n\r\nexport const MobileNav: FC = (props) => {\r\n const {\r\n color = 'evident',\r\n open,\r\n onClose,\r\n sections = [],\r\n auctionSections = [],\r\n mainsections = []\r\n } = props;\r\n const pathname = usePathname();\r\n const cssVars = useCssVars(color);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n{mainsections.map((section, index) => (\r\n \r\n ))}\r\n\r\n \r\n BILHANDEL\r\n \r\n {sections.map((section, index) => (\r\n \r\n ))}\r\n\r\n \r\n SMARTSALG (AUKTIONSBILER)\r\n \r\n {auctionSections.map((section, index) => (\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n Brug for hjælp?\r\n \r\n \r\n Du er velkommen til at kontakte os.\r\n \r\n \r\n \r\n \r\n }\r\n target=\"_blank\"\r\n variant=\"contained\"\r\n >\r\n Kontakt\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nMobileNav.propTypes = {\r\n color: PropTypes.oneOf(['blend-in', 'discreet', 'evident']),\r\n onClose: PropTypes.func,\r\n open: PropTypes.bool,\r\n sections: PropTypes.array,\r\n};\r\n","import type { FC, ReactNode } from 'react';\r\nimport { useCallback, useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport ChevronDownIcon from '@untitled-ui/icons-react/build/esm/ChevronDown';\r\nimport ChevronRightIcon from '@untitled-ui/icons-react/build/esm/ChevronRight';\r\nimport { Box, ButtonBase, Collapse, SvgIcon } from '@mui/material';\r\nimport { RouterLink } from 'src/components/router-link';\r\n\r\ninterface SideNavItemProps {\r\n active?: boolean;\r\n children?: ReactNode;\r\n depth?: number;\r\n disabled?: boolean;\r\n external?: boolean;\r\n icon?: ReactNode;\r\n label?: ReactNode;\r\n open?: boolean;\r\n path?: string;\r\n title: string;\r\n}\r\n\r\nexport const SideNavItem: FC = (props) => {\r\n const {\r\n active,\r\n children,\r\n depth = 0,\r\n disabled,\r\n external,\r\n icon,\r\n label,\r\n open: openProp,\r\n path,\r\n title,\r\n } = props;\r\n const [open, setOpen] = useState(!!openProp);\r\n\r\n const handleToggle = useCallback((): void => {\r\n setOpen((prevOpen) => !prevOpen);\r\n }, []);\r\n\r\n // Icons can be defined at top level only, deep levels have bullets instead of actual icons.\r\n\r\n let startIcon: ReactNode;\r\n\r\n if (depth === 0) {\r\n startIcon = icon;\r\n } else {\r\n startIcon = (\r\n \r\n \r\n \r\n );\r\n }\r\n\r\n const offset = depth === 0 ? 0 : (depth - 1) * 16;\r\n\r\n // Branch\r\n\r\n if (children) {\r\n return (\r\n
  • \r\n \r\n {startIcon && (\r\n \r\n {startIcon}\r\n \r\n )}\r\n theme.typography.fontFamily,\r\n fontSize: depth > 0 ? 13 : 14,\r\n fontWeight: depth > 0 ? 500 : 600,\r\n lineHeight: '24px',\r\n whiteSpace: 'nowrap',\r\n ...(active && {\r\n color: 'var(--nav-item-active-color)',\r\n }),\r\n ...(disabled && {\r\n color: 'var(--nav-item-disabled-color)',\r\n }),\r\n }}\r\n >\r\n {title}\r\n \r\n \r\n {open ? : }\r\n \r\n \r\n \r\n {children}\r\n \r\n
  • \r\n );\r\n }\r\n\r\n // Leaf\r\n\r\n const linkProps = path\r\n ? external\r\n ? {\r\n component: 'a',\r\n href: path,\r\n target: '_blank',\r\n }\r\n : {\r\n component: RouterLink,\r\n href: path,\r\n }\r\n : {};\r\n\r\n return (\r\n
  • \r\n \r\n {startIcon && (\r\n \r\n {startIcon}\r\n \r\n )}\r\n theme.typography.fontFamily,\r\n fontSize: depth > 0 ? 13 : 14,\r\n fontWeight: depth > 0 ? 500 : 600,\r\n lineHeight: '24px',\r\n whiteSpace: 'nowrap',\r\n ...(active && {\r\n color: 'var(--nav-item-active-color)',\r\n }),\r\n ...(disabled && {\r\n color: 'var(--nav-item-disabled-color)',\r\n }),\r\n }}\r\n >\r\n {title}\r\n \r\n {label && (\r\n \r\n {label}\r\n \r\n )}\r\n \r\n
  • \r\n );\r\n};\r\n\r\nSideNavItem.propTypes = {\r\n active: PropTypes.bool,\r\n children: PropTypes.node,\r\n depth: PropTypes.number,\r\n disabled: PropTypes.bool,\r\n external: PropTypes.bool,\r\n icon: PropTypes.node,\r\n open: PropTypes.bool,\r\n path: PropTypes.string,\r\n title: PropTypes.string.isRequired,\r\n};\r\n","import type { FC, ReactNode } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Box, Stack } from '@mui/material';\r\nimport { SideNavItem } from './side-nav-item';\r\n\r\ninterface Item {\r\n disabled?: boolean;\r\n external?: boolean;\r\n icon?: ReactNode;\r\n items?: Item[];\r\n label?: ReactNode;\r\n path?: string;\r\n title: string;\r\n expanded?: boolean;\r\n}\r\n\r\nconst renderItems = ({\r\n depth = 0,\r\n items,\r\n pathname,\r\n}: {\r\n depth?: number;\r\n items: Item[];\r\n pathname?: string | null;\r\n}): JSX.Element[] =>\r\n items.reduce(\r\n (acc: JSX.Element[], item) =>\r\n reduceChildRoutes({\r\n acc,\r\n depth,\r\n item,\r\n pathname,\r\n }),\r\n []\r\n );\r\n\r\nconst reduceChildRoutes = ({\r\n acc,\r\n depth,\r\n item,\r\n pathname,\r\n}: {\r\n acc: JSX.Element[];\r\n depth: number;\r\n item: Item;\r\n pathname?: string | null;\r\n}): Array => {\r\n const checkPath = !!(item.path && pathname);\r\n const partialMatch = checkPath ? pathname.includes(item.path!) : false;\r\n const exactMatch = checkPath ? pathname === item.path : false;\r\n\r\n // console.log(\r\n // checkPath,\r\n // pathname,\r\n // item.path,\r\n // partialMatch,\r\n // exactMatch,\r\n // item.items ? 'sub? ja' : 'sub? nej'\r\n // );\r\n\r\n if (item.items) {\r\n acc.push(\r\n \r\n \r\n {renderItems({\r\n depth: depth + 1,\r\n items: item.items,\r\n pathname,\r\n })}\r\n \r\n \r\n );\r\n } else {\r\n acc.push(\r\n \r\n );\r\n }\r\n\r\n return acc;\r\n};\r\n\r\ninterface SideNavSectionProps {\r\n items?: Item[];\r\n pathname?: string | null;\r\n subheader?: string;\r\n}\r\n\r\nexport const SideNavSection: FC = (props) => {\r\n const { items = [], pathname, subheader = '', ...other } = props;\r\n\r\n return (\r\n \r\n {subheader && (\r\n \r\n {subheader}\r\n \r\n )}\r\n {renderItems({ items, pathname })}\r\n \r\n );\r\n};\r\n\r\nSideNavSection.propTypes = {\r\n items: PropTypes.array,\r\n pathname: PropTypes.string,\r\n subheader: PropTypes.string,\r\n};\r\n","import type { FC } from 'react';\r\nimport { useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport File04Icon from '@untitled-ui/icons-react/build/esm/File04';\r\nimport {\r\n Box,\r\n Button,\r\n ButtonBase,\r\n Drawer,\r\n Stack,\r\n SvgIcon,\r\n Typography,\r\n} from '@mui/material';\r\nimport { useTheme } from '@mui/material/styles';\r\nimport { Logo } from 'src/components/logo';\r\nimport { RouterLink } from 'src/components/router-link';\r\nimport { Scrollbar } from 'src/components/scrollbar';\r\nimport { usePathname } from 'src/hooks/use-pathname';\r\nimport { paths } from 'src/paths';\r\nimport type { NavColor } from 'src/types/settings';\r\nimport type { Section } from '../config';\r\nimport { TenantSwitch } from '../tenant-switch';\r\nimport { SideNavSection } from './side-nav-section';\r\nimport MailOutlineIcon from '@mui/icons-material/MailOutline';\r\n\r\nconst SIDE_NAV_WIDTH: number = 280;\r\n\r\nconst useCssVars = (color: NavColor): Record => {\r\n const theme = useTheme();\r\n\r\n return useMemo((): Record => {\r\n switch (color) {\r\n case 'blend-in':\r\n if (theme.palette.mode === 'dark') {\r\n return {\r\n '--nav-bg': theme.palette.background.default,\r\n '--nav-color': theme.palette.neutral[100],\r\n '--nav-border-color': theme.palette.neutral[700],\r\n '--nav-logo-border': theme.palette.neutral[700],\r\n '--nav-section-title-color': theme.palette.neutral[400],\r\n '--nav-item-color': theme.palette.neutral[400],\r\n '--nav-item-hover-bg': 'rgba(255, 255, 255, 0.04)',\r\n '--nav-item-active-bg': 'rgba(255, 255, 255, 0.04)',\r\n '--nav-item-active-color': theme.palette.text.primary,\r\n '--nav-item-disabled-color': theme.palette.neutral[600],\r\n '--nav-item-icon-color': theme.palette.neutral[500],\r\n '--nav-item-icon-active-color': theme.palette.primary.main,\r\n '--nav-item-icon-disabled-color': theme.palette.neutral[700],\r\n '--nav-item-chevron-color': theme.palette.neutral[700],\r\n '--nav-scrollbar-color': theme.palette.neutral[400],\r\n };\r\n } else {\r\n return {\r\n '--nav-bg': theme.palette.background.default,\r\n '--nav-color': theme.palette.text.primary,\r\n '--nav-border-color': theme.palette.neutral[100],\r\n '--nav-logo-border': theme.palette.neutral[100],\r\n '--nav-section-title-color': theme.palette.neutral[400],\r\n '--nav-item-color': theme.palette.text.secondary,\r\n '--nav-item-hover-bg': theme.palette.action.hover,\r\n '--nav-item-active-bg': theme.palette.action.selected,\r\n '--nav-item-active-color': theme.palette.text.primary,\r\n '--nav-item-disabled-color': theme.palette.neutral[400],\r\n '--nav-item-icon-color': theme.palette.neutral[400],\r\n '--nav-item-icon-active-color': theme.palette.primary.main,\r\n '--nav-item-icon-disabled-color': theme.palette.neutral[400],\r\n '--nav-item-chevron-color': theme.palette.neutral[400],\r\n '--nav-scrollbar-color': theme.palette.neutral[900],\r\n };\r\n }\r\n\r\n case 'discreet':\r\n if (theme.palette.mode === 'dark') {\r\n return {\r\n '--nav-bg': theme.palette.neutral[900],\r\n '--nav-color': theme.palette.neutral[100],\r\n '--nav-border-color': theme.palette.neutral[700],\r\n '--nav-logo-border': theme.palette.neutral[700],\r\n '--nav-section-title-color': theme.palette.neutral[400],\r\n '--nav-item-color': theme.palette.neutral[400],\r\n '--nav-item-hover-bg': 'rgba(255, 255, 255, 0.04)',\r\n '--nav-item-active-bg': 'rgba(255, 255, 255, 0.04)',\r\n '--nav-item-active-color': theme.palette.text.primary,\r\n '--nav-item-disabled-color': theme.palette.neutral[600],\r\n '--nav-item-icon-color': theme.palette.neutral[500],\r\n '--nav-item-icon-active-color': theme.palette.primary.main,\r\n '--nav-item-icon-disabled-color': theme.palette.neutral[700],\r\n '--nav-item-chevron-color': theme.palette.neutral[700],\r\n '--nav-scrollbar-color': theme.palette.neutral[400],\r\n };\r\n } else {\r\n return {\r\n '--nav-bg': theme.palette.neutral[50],\r\n '--nav-color': theme.palette.text.primary,\r\n '--nav-border-color': theme.palette.divider,\r\n '--nav-logo-border': theme.palette.neutral[200],\r\n '--nav-section-title-color': theme.palette.neutral[500],\r\n '--nav-item-color': theme.palette.neutral[500],\r\n '--nav-item-hover-bg': theme.palette.action.hover,\r\n '--nav-item-active-bg': theme.palette.action.selected,\r\n '--nav-item-active-color': theme.palette.text.primary,\r\n '--nav-item-disabled-color': theme.palette.neutral[400],\r\n '--nav-item-icon-color': theme.palette.neutral[400],\r\n '--nav-item-icon-active-color': theme.palette.primary.main,\r\n '--nav-item-icon-disabled-color': theme.palette.neutral[400],\r\n '--nav-item-chevron-color': theme.palette.neutral[400],\r\n '--nav-scrollbar-color': theme.palette.neutral[900],\r\n };\r\n }\r\n\r\n case 'evident':\r\n if (theme.palette.mode === 'dark') {\r\n return {\r\n '--nav-bg': theme.palette.neutral[800],\r\n '--nav-color': theme.palette.common.white,\r\n '--nav-border-color': 'transparent',\r\n '--nav-logo-border': theme.palette.neutral[700],\r\n '--nav-section-title-color': theme.palette.neutral[400],\r\n '--nav-item-color': theme.palette.neutral[400],\r\n '--nav-item-hover-bg': 'rgba(255, 255, 255, 0.04)',\r\n '--nav-item-active-bg': 'rgba(255, 255, 255, 0.04)',\r\n '--nav-item-active-color': theme.palette.common.white,\r\n '--nav-item-disabled-color': theme.palette.neutral[500],\r\n '--nav-item-icon-color': theme.palette.neutral[400],\r\n '--nav-item-icon-active-color': theme.palette.primary.main,\r\n '--nav-item-icon-disabled-color': theme.palette.neutral[500],\r\n '--nav-item-chevron-color': theme.palette.neutral[600],\r\n '--nav-scrollbar-color': theme.palette.neutral[400],\r\n };\r\n } else {\r\n return {\r\n '--nav-bg': theme.palette.neutral[800],\r\n '--nav-color': theme.palette.common.white,\r\n '--nav-border-color': 'transparent',\r\n '--nav-logo-border': theme.palette.neutral[700],\r\n '--nav-section-title-color': theme.palette.neutral[400],\r\n '--nav-item-color': theme.palette.neutral[400],\r\n '--nav-item-hover-bg': 'rgba(255, 255, 255, 0.04)',\r\n '--nav-item-active-bg': 'rgba(255, 255, 255, 0.04)',\r\n '--nav-item-active-color': theme.palette.common.white,\r\n '--nav-item-disabled-color': theme.palette.neutral[500],\r\n '--nav-item-icon-color': theme.palette.neutral[400],\r\n '--nav-item-icon-active-color': theme.palette.primary.main,\r\n '--nav-item-icon-disabled-color': theme.palette.neutral[500],\r\n '--nav-item-chevron-color': theme.palette.neutral[600],\r\n '--nav-scrollbar-color': theme.palette.neutral[400],\r\n };\r\n }\r\n\r\n default:\r\n return {};\r\n }\r\n }, [theme, color]);\r\n};\r\n\r\ninterface SideNavProps {\r\n color?: NavColor;\r\n mainsections?: Section[];\r\n sections?: Section[];\r\n auctionSections?: Section[];\r\n}\r\n\r\nexport const SideNav: FC = (props) => {\r\n const { color = 'evident', sections = [], auctionSections = [], mainsections = [] } = props;\r\n const pathname = usePathname();\r\n const cssVars = useCssVars(color);\r\n const root_active = pathname === paths.index;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {mainsections.map((section, index) => (\r\n \r\n ))}\r\n\r\n \r\n BILHANDEL\r\n \r\n {sections.map((section, index) => (\r\n \r\n ))}\r\n\r\n \r\n SMARTSALG (AUKTIONSBILER)\r\n \r\n {auctionSections.map((section, index) => (\r\n \r\n ))}\r\n \r\n \r\n Brug for hjælp?\r\n \r\n SmartSalg support tlf. 30 14 44 93\r\n \r\n \r\n Bilhandel support tlf. 93 10 20 50\r\n \r\n \r\n \r\n \r\n }\r\n target=\"_blank\"\r\n variant=\"contained\"\r\n >\r\n Kontakt os\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nSideNav.propTypes = {\r\n color: PropTypes.oneOf(['blend-in', 'discreet', 'evident']),\r\n sections: PropTypes.array,\r\n};\r\n","import type { FC } from 'react';\r\nimport { useCallback } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport toast from 'react-hot-toast';\r\nimport User03Icon from '@untitled-ui/icons-react/build/esm/User03';\r\nimport {\r\n Box,\r\n Button,\r\n Divider,\r\n ListItemButton,\r\n ListItemIcon,\r\n ListItemText,\r\n Popover,\r\n SvgIcon,\r\n Typography,\r\n} from '@mui/material';\r\nimport { RouterLink } from 'src/components/router-link';\r\nimport { useAuth } from 'src/hooks/use-auth';\r\nimport { useRouter } from 'src/hooks/use-router';\r\nimport { paths } from 'src/paths';\r\nimport { Issuer } from 'src/utils/auth';\r\n\r\ninterface AccountPopoverProps {\r\n anchorEl: null | Element;\r\n onClose?: () => void;\r\n open?: boolean;\r\n}\r\n\r\nexport const AccountPopover: FC = (props) => {\r\n const { anchorEl, onClose, open, ...other } = props;\r\n const router = useRouter();\r\n const auth = useAuth();\r\n const { user } = useAuth();\r\n\r\n const handleLogout = useCallback(async (): Promise => {\r\n try {\r\n onClose?.();\r\n\r\n switch (auth.issuer) {\r\n case Issuer.JWT: {\r\n await auth.signOut();\r\n break;\r\n }\r\n\r\n default: {\r\n console.warn('Using an unknown Auth Issuer, did not log out');\r\n }\r\n }\r\n\r\n // router.push(paths.index);\r\n window.location.href = paths.index;\r\n } catch (err) {\r\n console.error(err);\r\n toast.error('Something went wrong!');\r\n }\r\n }, [auth, onClose]);\r\n\r\n return (\r\n \r\n \r\n {user?.name}\r\n \r\n {user?.email}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Konto}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nAccountPopover.propTypes = {\r\n anchorEl: PropTypes.any,\r\n onClose: PropTypes.func,\r\n open: PropTypes.bool,\r\n};\r\n","import type { FC } from 'react';\r\nimport User01Icon from '@untitled-ui/icons-react/build/esm/User01';\r\nimport { Avatar, Box, ButtonBase, SvgIcon } from '@mui/material';\r\nimport { usePopover } from 'src/hooks/use-popover';\r\nimport { AccountPopover } from './account-popover';\r\nimport { useAuth } from 'src/hooks/use-auth';\r\nimport { stringAvatar } from 'src/utils/string-avatar';\r\n\r\nexport const AccountButton: FC = () => {\r\n const { user } = useAuth();\r\n const popover = usePopover();\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n","import type { FC } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { styled } from '@mui/material/styles';\r\n\r\ntype Size = 'small' | 'medium' | 'large';\r\n\r\ntype Status = 'online' | 'offline' | 'away' | 'busy';\r\n\r\nconst sizes = {\r\n small: 8,\r\n medium: 16,\r\n large: 23\r\n};\r\n\r\ninterface PresenceRootProps {\r\n ownerState: {\r\n size: Size;\r\n status: Status;\r\n };\r\n}\r\n\r\nconst PresenceRoot = styled('span')(\r\n ({ theme, ownerState }) => {\r\n const size = sizes[ownerState.size];\r\n const colors = {\r\n offline: theme.palette.neutral[100],\r\n away: theme.palette.warning.main,\r\n busy: theme.palette.error.main,\r\n online: theme.palette.success.main\r\n };\r\n const color = colors[ownerState.status];\r\n\r\n return {\r\n backgroundColor: color,\r\n borderRadius: '50%',\r\n display: 'inline-block',\r\n flexGrow: 0,\r\n flexShrink: 0,\r\n height: size,\r\n width: size\r\n };\r\n }\r\n);\r\n\r\ninterface PresenceProps {\r\n size?: Size;\r\n status?: Status;\r\n}\r\n\r\nexport const Presence: FC = (props) => {\r\n const { size = 'medium', status = 'offline', ...other } = props;\r\n\r\n const ownerState = { size, status };\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nPresence.propTypes = {\r\n size: PropTypes.oneOf(['small', 'medium', 'large']),\r\n status: PropTypes.oneOf(['online', 'offline', 'away', 'busy'])\r\n};\r\n","import { Locale } from 'date-fns';\r\nimport locale from 'date-fns/locale/en-US';\r\n\r\nconst formatDistanceLocale: Record = {\r\n lessThanXSeconds: '{{count}}s',\r\n xSeconds: '{{count}}s',\r\n halfAMinute: '30s',\r\n lessThanXMinutes: '{{count}}m',\r\n xMinutes: '{{count}}m',\r\n aboutXHours: '{{count}}h',\r\n xHours: '{{count}}h',\r\n xDays: '{{count}}d',\r\n aboutXWeeks: '{{count}}w',\r\n xWeeks: '{{count}}w',\r\n aboutXMonths: '{{count}}m',\r\n xMonths: '{{count}}m',\r\n aboutXYears: '{{count}}y',\r\n xYears: '{{count}}y',\r\n overXYears: '{{count}}y',\r\n almostXYears: '{{count}}y'\r\n};\r\n\r\nexport const customLocale: Locale = {\r\n ...locale,\r\n formatDistance: (token, count, options) => {\r\n options = options || {};\r\n\r\n const result = formatDistanceLocale[token].replace('{{count}}', count);\r\n\r\n if (options.addSuffix) {\r\n if (options.comparison > 0) {\r\n return 'in ' + result;\r\n } else {\r\n return result + ' ago';\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n};\r\n","import type { FC } from 'react';\r\nimport { formatDistanceStrict } from 'date-fns';\r\nimport PropTypes from 'prop-types';\r\nimport {\r\n Avatar,\r\n Box,\r\n Link,\r\n List,\r\n ListItem,\r\n ListItemAvatar,\r\n ListItemText,\r\n Popover,\r\n Typography,\r\n} from '@mui/material';\r\nimport { Presence } from 'src/components/presence';\r\nimport { customLocale } from 'src/utils/date-locale';\r\n\r\ninterface Contact {\r\n id: string;\r\n avatar: string;\r\n isActive: boolean;\r\n lastActivity?: number;\r\n name: string;\r\n email: string;\r\n}\r\n\r\ninterface ContactsPopoverProps {\r\n anchorEl: null | Element;\r\n contacts?: Contact[];\r\n onClose?: () => void;\r\n open?: boolean;\r\n}\r\n\r\nexport const ContactsPopover: FC = (props) => {\r\n const { anchorEl, contacts = [], onClose, open = false, ...other } = props;\r\n\r\n return (\r\n \r\n \r\n Konsulenter\r\n \r\n \r\n \r\n {contacts.map((contact) => {\r\n const showOnline = false; //contact.isActive;\r\n const lastActivity =\r\n !contact.isActive && contact.lastActivity\r\n ? formatDistanceStrict(contact.lastActivity, new Date(), {\r\n addSuffix: true,\r\n locale: customLocale,\r\n })\r\n : undefined;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n {contact.name}\r\n \r\n }\r\n />\r\n {showOnline && }\r\n {lastActivity && (\r\n \r\n {lastActivity}\r\n \r\n )}\r\n \r\n );\r\n })}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nContactsPopover.propTypes = {\r\n anchorEl: PropTypes.any,\r\n contacts: PropTypes.array,\r\n onClose: PropTypes.func,\r\n open: PropTypes.bool,\r\n};\r\n","import type { FC } from 'react';\r\nimport Users03Icon from '@untitled-ui/icons-react/build/esm/Users03';\r\nimport { IconButton, SvgIcon, Tooltip } from '@mui/material';\r\nimport { usePopover } from 'src/hooks/use-popover';\r\nimport { ContactsPopover } from './contacts-popover';\r\nimport SupportAgentIcon from '@mui/icons-material/SupportAgent';\r\n\r\nconst now = new Date();\r\n\r\ninterface Contact {\r\n id: string;\r\n avatar: string;\r\n isActive: boolean;\r\n lastActivity?: number;\r\n name: string;\r\n email: string;\r\n}\r\n\r\nconst useContacts = (): Contact[] => {\r\n return [\r\n {\r\n id: '5e8891ab188cd2855e6029b7',\r\n avatar: '/assets/consultants/andreas.png',\r\n isActive: true,\r\n lastActivity: now.getTime(),\r\n name: 'Andreas Fischer',\r\n email: 'Andreas Fischer ',\r\n },\r\n {\r\n id: '5e887a62195cc5aef7e8ca5d',\r\n avatar: '/assets/consultants/dorthe.png',\r\n isActive: true,\r\n lastActivity: now.getTime(),\r\n name: 'Dorthe Abild Thomsen',\r\n email: 'Dorthe Thomsen ',\r\n },\r\n {\r\n id: '5e887ac47eed253091be10cb',\r\n avatar: '/assets/consultants/joakim.png',\r\n isActive: true,\r\n lastActivity: now.getTime(),\r\n name: 'Joakim Madsen',\r\n email: 'Joakim Madsen ',\r\n },\r\n {\r\n id: '5e887b209c28ac3dd97f6db5',\r\n avatar: '/assets/consultants/jonas.png',\r\n isActive: true,\r\n lastActivity: now.getTime(),\r\n name: 'Jonas Alexandersen',\r\n email: 'Jonas Holmstrøm Alexandersen ',\r\n },\r\n ];\r\n};\r\n\r\nexport const ContactsButton: FC = () => {\r\n const popover = usePopover();\r\n const contacts = useContacts();\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n","import type { FC } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Menu01Icon from '@untitled-ui/icons-react/build/esm/Menu01';\r\nimport type { Theme } from '@mui/material';\r\nimport {\r\n Box,\r\n Container,\r\n IconButton,\r\n Stack,\r\n SvgIcon,\r\n Typography,\r\n useMediaQuery,\r\n} from '@mui/material';\r\nimport { alpha } from '@mui/material/styles';\r\nimport { AccountButton } from '../account-button';\r\nimport { ContactsButton } from '../contacts-button';\r\nimport { LanguageSwitch } from '../language-switch';\r\nimport { NotificationsButton } from '../notifications-button';\r\nimport { SearchButton } from '../search-button';\r\n\r\nconst TOP_NAV_HEIGHT: number = 64;\r\nconst SIDE_NAV_WIDTH: number = 280;\r\n\r\ninterface TopNavProps {\r\n onMobileNavOpen?: () => void;\r\n}\r\n\r\nexport const TopNav: FC = (props) => {\r\n const { onMobileNavOpen, ...other } = props;\r\n const lgUp = useMediaQuery((theme: Theme) => theme.breakpoints.up('lg'));\r\n const smUp = useMediaQuery((theme: Theme) => theme.breakpoints.up('sm'));\r\n\r\n return (\r\n \r\n alpha(theme.palette.background.default, 0.8),\r\n position: 'sticky',\r\n left: {\r\n lg: `${SIDE_NAV_WIDTH}px`,\r\n },\r\n top: 0,\r\n width: {\r\n lg: `calc(100% - ${SIDE_NAV_WIDTH}px)`,\r\n },\r\n zIndex: (theme) => theme.zIndex.appBar,\r\n }}\r\n {...other}\r\n >\r\n \r\n \r\n {!lgUp && (\r\n \r\n \r\n \r\n \r\n \r\n )}\r\n {/* */}\r\n\r\n {/* {window.location.href.includes('auctions') && lgUp && (\r\n \r\n BEMÆRK! Fra d. 1/1 regulerer vi vores salærer til mellem 1.600 kr.\r\n og 4.000 kr. + moms pr. købt bil.\r\n \r\n )} */}\r\n \r\n \r\n {/* */}\r\n {/* */}\r\n\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nTopNav.propTypes = {\r\n onMobileNavOpen: PropTypes.func,\r\n};\r\n","import { useCallback, useEffect, useState } from 'react';\r\nimport { usePathname } from 'src/hooks/use-pathname';\r\n\r\nexport const useMobileNav = () => {\r\n const pathname = usePathname();\r\n const [open, setOpen] = useState(false);\r\n\r\n const handlePathnameChange = useCallback(\r\n (): void => {\r\n if (open) {\r\n setOpen(false);\r\n }\r\n },\r\n [open]\r\n );\r\n\r\n useEffect(\r\n () => {\r\n handlePathnameChange();\r\n },\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n [pathname]\r\n );\r\n\r\n const handleOpen = useCallback(\r\n (): void => {\r\n setOpen(true);\r\n },\r\n []\r\n );\r\n\r\n const handleClose = useCallback(\r\n (): void => {\r\n setOpen(false);\r\n },\r\n []\r\n );\r\n\r\n return {\r\n handleOpen,\r\n handleClose,\r\n open\r\n };\r\n};\r\n","import type { FC, ReactNode } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport type { Theme } from '@mui/material';\r\nimport { useMediaQuery } from '@mui/material';\r\nimport { styled } from '@mui/material/styles';\r\nimport type { NavColor } from 'src/types/settings';\r\nimport type { Section } from '../config';\r\nimport { MobileNav } from '../mobile-nav';\r\nimport { SideNav } from './side-nav';\r\nimport { TopNav } from './top-nav';\r\nimport { useMobileNav } from './use-mobile-nav';\r\n\r\nconst SIDE_NAV_WIDTH: number = 280;\r\n\r\nconst VerticalLayoutRoot = styled('div')(({ theme }) => ({\r\n display: 'flex',\r\n flex: '1 1 auto',\r\n maxWidth: '100%',\r\n [theme.breakpoints.up('lg')]: {\r\n paddingLeft: SIDE_NAV_WIDTH,\r\n },\r\n}));\r\n\r\nconst VerticalLayoutContainer = styled('div')({\r\n display: 'flex',\r\n flex: '1 1 auto',\r\n flexDirection: 'column',\r\n width: '100%',\r\n});\r\n\r\ninterface VerticalLayoutProps {\r\n children?: ReactNode;\r\n navColor?: NavColor;\r\n mainsections?: Section[];\r\n sections?: Section[];\r\n auctionSections?: Section[];\r\n}\r\n\r\nexport const VerticalLayout: FC = (props) => {\r\n const { children, sections, navColor, auctionSections, mainsections } = props;\r\n const lgUp = useMediaQuery((theme: Theme) => theme.breakpoints.up('lg'));\r\n const mobileNav = useMobileNav();\r\n\r\n return (\r\n <>\r\n \r\n {lgUp && (\r\n \r\n )}\r\n {!lgUp && (\r\n \r\n )}\r\n \r\n {children}\r\n \r\n \r\n );\r\n};\r\n\r\nVerticalLayout.propTypes = {\r\n children: PropTypes.node,\r\n navColor: PropTypes.oneOf(['blend-in', 'discreet', 'evident']),\r\n sections: PropTypes.array,\r\n};\r\n","import type { FC, ReactNode } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { withAuthGuard } from 'src/hocs/with-auth-guard';\r\nimport { useSettings } from 'src/hooks/use-settings';\r\nimport { useAuctionSections, useMainSections, useSections } from './config';\r\nimport { HorizontalLayout } from './horizontal-layout';\r\nimport { VerticalLayout } from './vertical-layout';\r\n\r\ninterface LayoutProps {\r\n children?: ReactNode;\r\n}\r\n\r\nexport const Layout: FC = withAuthGuard((props) => {\r\n const settings = useSettings();\r\n useMainSections\r\n const mainSections = useMainSections();\r\n const sections = useSections();\r\n const auctionSections = useAuctionSections();\r\n if (settings.layout === 'horizontal') {\r\n return <>;\r\n }\r\n\r\n return (\r\n \r\n );\r\n});\r\n\r\nLayout.propTypes = {\r\n children: PropTypes.node,\r\n};\r\n","export const paths = {\r\n index: '/',\r\n auth: {\r\n jwt: {\r\n login: '/auth/jwt/login',\r\n registration: '/auth/jwt/registration',\r\n forgotPassword: '/auth/jwt/forgot-password',\r\n resetPassword: '/auth/jwt/reset-password',\r\n },\r\n passwordLess: {\r\n request: '/auth/password-less/request',\r\n },\r\n },\r\n dashboard: {\r\n index: '/dashboard/overview',\r\n account: '/dashboard/account',\r\n blank: '/dashboard/blank',\r\n classifieds: {\r\n index: '/dashboard/classifieds',\r\n active: '/dashboard/classifieds/active',\r\n priceChange: '/dashboard/classifieds/price-change',\r\n sold: '/dashboard/classifieds/sold',\r\n asset: '/dashboard/classifieds/asset',\r\n },\r\n callTracking: '/dashboard/calls',\r\n leads: {\r\n leads: '/dashboard/leads',\r\n calls: '/dashboard/calls',\r\n emails: '/dashboard/emails',\r\n },\r\n auctions: {\r\n priceAdjustment: '/dashboard/auctions/price-adjustment/',\r\n auctions: '/dashboard/auctions/',\r\n active: '/dashboard/auctions/active',\r\n bid: '/dashboard/auctions/bid',\r\n openbid: '/dashboard/auctions/openbid',\r\n closedbid: '/dashboard/auctions/closedbid',\r\n nowinner: '/dashboard/auctions/nowinner',\r\n won: '/dashboard/auctions/won',\r\n archived: '/dashboard/auctions/archived',\r\n favorite: '/dashboard/auctions/favorite',\r\n messages: '/dashboard/auctions-messages',\r\n invoices: '/dashboard/auctions-invoices',\r\n },\r\n },\r\n 401: '/401',\r\n 404: '/404',\r\n 500: '/500',\r\n 403: '/403',\r\n};\r\n"],"names":["RouterLink","forwardRef","props","ref","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","Link","Scrollbar","styled","SimpleBar","Seo","title","Head","propTypes","PropTypes","useAuth","useContext","AuthContext","usePopover","anchorRef","useRef","open","setOpen","useState","handleOpen","useCallback","handleClose","handleToggle","prevState","useSettings","SettingsContext","Component","loginPaths","Issuer","JWT","paths","auth","jwt","login","AuthGuard","children","router","useRouter","isAuthenticated","issuer","checked","setChecked","check","searchParams","URLSearchParams","returnTo","window","location","href","toString","concat","replace","useEffect","jsx_runtime","Fragment","line_chart_up_04","jsxs","svg","xmlns","width","height","fill","path","d","opacity","stroke","strokeLinecap","strokeLinejoin","strokeWidth","home_smile","useMainSections","t","useTranslation","useMemo","items","index","icon","SvgIcon","fontSize","HomeSmile","useSections","dashboard","LineChartUp04Icon","EmojiPeopleIcon","leads","calls","emails","FormatListBulletedIcon","classifieds","active","sold","priceChange","asset","PhotoSizeSelectActualRoundedIcon","useAuctionSections","store","useAuctions","activeTitle","activeAuctionCount","trim","GavelIcon","expanded","auctions","openbid","closedbid","won","archived","favorite","ForumIcon","messages","TenantPopover","anchorEl","onChange","onClose","tenants","other","Popover","anchorOrigin","horizontal","vertical","disableScrollLock","transformOrigin","keepMounted","PaperProps","sx","map","MenuItem","onClick","tenant","TenantSwitch","popover","user","Stack","alignItems","direction","spacing","Box","flexGrow","Typography","color","variant","name","current","MobileNavItem","startIcon","depth","disabled","external","label","openProp","prevOpen","display","justifyContent","borderRadius","backgroundColor","offset","li","ButtonBase","pl","pr","py","textAlign","component","mr","fontFamily","theme","typography","fontWeight","lineHeight","whiteSpace","ml","ChevronDownIcon","ChevronRightIcon","Collapse","in","mt","linkProps","target","isRequired","renderItems","pathname","param","reduce","acc","item","reduceChildRoutes","checkPath","partialMatch","includes","exactMatch","push","listStyle","m","p","MobileNavSection","subheader","mb","textTransform","useCssVars","useTheme","palette","mode","background","default","neutral","text","primary","main","secondary","action","hover","selected","common","white","MobileNav","sections","auctionSections","mainsections","usePathname","cssVars","Drawer","anchor","borderColor","borderStyle","borderWidth","Logo","px","section","Button","fullWidth","File04Icon","SideNavItem","SideNavSection","divider","SideNav","borderRightColor","borderRightStyle","borderRightWidth","MailOutlineIcon","AccountPopover","handleLogout","signOut","console","warn","err","error","toast","email","Divider","ListItemButton","account","ListItemIcon","User03Icon","ListItemText","my","size","AccountButton","Avatar","User01Icon","sizes","small","medium","large","ownerState","colors","offline","away","warning","busy","online","success","status","flexShrink","formatDistanceLocale","lessThanXSeconds","xSeconds","halfAMinute","lessThanXMinutes","xMinutes","aboutXHours","xHours","xDays","aboutXWeeks","xWeeks","aboutXMonths","xMonths","aboutXYears","xYears","overXYears","almostXYears","customLocale","locale","formatDistance","token","count","options","result","addSuffix","comparison","ContactsPopover","contacts","List","disablePadding","lastActivity","contact","isActive","formatDistanceStrict","Date","undefined","ListItem","disableGutters","ListItemAvatar","src","avatar","cursor","disableTypography","noWrap","underline","id","now","useContacts","getTime","ContactsButton","Tooltip","IconButton","SupportAgentIcon","TopNav","onMobileNavOpen","lgUp","useMediaQuery","breakpoints","up","backdropFilter","alpha","position","left","lg","top","zIndex","appBar","minHeight","flex","Menu01Icon","useMobileNav","handlePathnameChange","VerticalLayoutRoot","maxWidth","paddingLeft","VerticalLayoutContainer","flexDirection","VerticalLayout","navColor","mobileNav","Layout","settings","mainSections","layout","registration","forgotPassword","resetPassword","passwordLess","request","blank","callTracking","priceAdjustment","bid","nowinner","invoices"],"sourceRoot":""}