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A,aAAaC,OAAO,CAAC,eAEzBiO,eAAgB,EAClB,EACF,EACAF,cAAe,KACb,IAAM/F,EAAW,CAACsD,IAAMtD,QAAQ,CAChCjI,aAAaM,OAAO,CAAC,cAAe2H,EAAW,OAAS,SACxDgO,EAAI,IAAO,EAAEhO,SAAAA,CAAS,GACxB,EACAmO,mBAAoB,KAClBH,EAAI,IAAO,EAAEhI,iBAAkB,IAAIoI,IAAO,GAC5C,EACAC,kBAAmB,KACjBL,EAAI,IAAO,EAAE/H,eAAgB,EAAK,IAClCqI,WAAW,KACTN,EAAI,IAAO,EAAE/H,eAAgB,EAAM,GACrC,EAAG,KACL,CACF,GAEAsG,CAAAA,EAAAC,CAAA,CAAetG","sources":["webpack://_N_E/./components/auth/api.ts","webpack://_N_E/./components/bookings/api.tsx","webpack://_N_E/./components/lab-settings/api.tsx","webpack://_N_E/./components/common/switching-role.tsx","webpack://_N_E/./components/ui/sheet.tsx","webpack://_N_E/./components/layout/public-menu.tsx","webpack://_N_E/./components/sidebar/menu-item.tsx","webpack://_N_E/./components/sidebar/mobile-menu.tsx","webpack://_N_E/./components/sidebar.tsx","webpack://_N_E/./components/main-layout.tsx","webpack://_N_E/./components/ui/accordion.tsx","webpack://_N_E/./components/ui/avatar.tsx","webpack://_N_E/./components/ui/badge.tsx","webpack://_N_E/./components/ui/dropdown-menu.tsx","webpack://_N_E/./components/ui/tooltip.tsx","webpack://_N_E/./packages/dayjs/index.ts","webpack://_N_E/./src/services/org.service.ts","webpack://_N_E/./stores/org-store.ts","webpack://_N_E/./stores/sidebar-store.ts","webpack://_N_E/"],"sourcesContent":["import { API_URL, superFetch } from \"@/lib/utils\";\nimport { clearStorage } from \"@/stores/auth-store\";\n\nimport { RegisterRequest } from \"./interface\";\n\ninterface LoginData {\n email: string;\n password: string;\n}\n\nexport async function fetchLogin(data: LoginData) {\n const res = await fetch(`${API_URL}/users/login`, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify(data),\n });\n return res.json();\n}\n\nexport async function fetchRegisterUser(data: RegisterRequest) {\n const res = await fetch(`${API_URL}/users/register`, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify(data),\n });\n const json = await res.json();\n if (!res.ok) {\n throw new Error(json.message || \"An error occurred\");\n }\n return true;\n}\n\nexport const fetchAcceptInvite = async (invite_token: string) => {\n const url = `${API_URL}/users/accept_invite`;\n const body = JSON.stringify({ invite_token });\n\n return await superFetch(url, { method: \"POST\", body });\n};\n\nexport async function sendVerifyEmail(email: string) {\n const res = await fetch(`${API_URL}/users/resend-verify-email`, {\n method: \"POST\",\n body: JSON.stringify({ email }),\n });\n return res.json();\n}\n\nexport async function fetchUniversityList(url: string) {\n const res = await fetch(`${API_URL}${url}`);\n const json = await res.json();\n return json.data;\n}\n\nexport async function sendResetPasswordEmail(email: string) {\n const res = await fetch(`${API_URL}/users/reset-password`, {\n method: \"POST\",\n body: JSON.stringify({ email }),\n });\n return res;\n}\n\nexport async function updatePassword(data: any) {\n const res = await fetch(`${API_URL}/users/update-password`, {\n method: \"POST\",\n body: JSON.stringify(data),\n });\n return res;\n}\n\nexport async function refreshToken() {\n const refresh_token = localStorage.getItem(\"refreshToken\");\n if (!refresh_token) {\n throw new Error(\n \"[No refresh_token] Some error occurred. Please try again.\",\n );\n }\n\n return superFetch(`${API_URL}/users/refresh`, {\n method: \"POST\",\n body: JSON.stringify({ refresh_token }),\n }) as any;\n}\n\nexport async function getRefreshToken(triggerRefreshRef: any) {\n try {\n if (triggerRefreshRef.current) {\n return;\n }\n triggerRefreshRef.current = true;\n const res = await refreshToken();\n const user = res?.data;\n if (!user) {\n throw new Error(\"Invalid refresh data\");\n }\n localStorage.setItem(\"user\", JSON.stringify(user));\n localStorage.setItem(\"authToken\", user.token);\n window.location.reload();\n } catch (err) {\n clearStorage();\n const path = window.location.pathname;\n window.location.href = \"/login?redirect=\" + path;\n }\n}\n","import { API_URL, superFetch } from \"@/lib/utils\";\n\nexport async function fetchOrgBookingDetail(url: string) {\n const response = (await superFetch(`${API_URL}/${url}`)) as any;\n return response.data;\n}\n\nexport async function fetchOrgBookings(url: string) {\n const res = (await superFetch(`${API_URL}${url}`)) as any;\n return res.data.bookings;\n}\n","import { API_URL, getAuthToken, superFetch } from \"@/lib/utils\";\n\nexport async function fetchUpdateOrg(data: any) {\n const url = `${API_URL}/orgs`;\n const body = JSON.stringify(data);\n\n return superFetch(url, { method: \"PUT\", body });\n}\n\nexport async function fetchAddOrgIntegration(data: any) {\n const url = `${API_URL}/orgs/integrations`;\n const body = JSON.stringify(data);\n\n return superFetch(url, { method: \"POST\", body });\n}\n\nexport async function fetchDeleteOrgIntegration(data: any) {\n const url = `${API_URL}/orgs/integrations`;\n const body = JSON.stringify(data);\n\n return superFetch(url, { method: \"DELETE\", body });\n}\n\nexport const fetchOrgInfo = async (url: string) => {\n const urlString = `${API_URL}${url}`;\n const token = getAuthToken();\n if (!token) return null;\n const json = (await superFetch(urlString)) as any;\n return json?.data?.org;\n};\n\nexport async function fetchUpdateOrgTrainings(data: any) {\n const url = `${API_URL}/orgs/trainings`;\n\n return superFetch(url, { method: \"PUT\", body: JSON.stringify(data) });\n}\n\nexport async function fetchCreateSubscription(data: any) {\n const url = `${API_URL}/orgs/subscription-plans`;\n\n return superFetch(url, { method: \"POST\", body: JSON.stringify(data) });\n}\n\nexport async function fetchUpdateSubscription(data: any) {\n const url = `${API_URL}/orgs/subscription-plans`;\n\n return superFetch(url, { method: \"PUT\", body: JSON.stringify(data) });\n}\n","export function SwitchingRole({ userType }: { userType: string }) {\n return (\n
\n
\n
\n \n \n
\n
\n Switching mode to {userType === \"university\" ? \"Booking\" : \"Hosting\"}\n
\n
\n
\n );\n}\n\nconst SwitchRoleIcon = () => (\n \n \n \n \n \n \n);\n\nconst SwitchBorder = () => (\n \n \n \n \n \n \n \n);\n","import * as SheetPrimitive from \"@radix-ui/react-dialog\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { X } from \"lucide-react\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst Sheet = SheetPrimitive.Root;\n\nconst SheetTrigger = SheetPrimitive.Trigger;\n\nconst SheetClose = SheetPrimitive.Close;\n\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nconst sheetVariants = cva(\n \"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500\",\n {\n variants: {\n side: {\n top: \"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top\",\n bottom:\n \"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom\",\n left: \"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm\",\n right:\n \"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm\",\n },\n },\n defaultVariants: {\n side: \"right\",\n },\n },\n);\n\ninterface SheetContentProps\n extends React.ComponentPropsWithoutRef,\n VariantProps {\n showCloseButton?: boolean;\n}\n\nconst SheetContent = React.forwardRef<\n React.ElementRef,\n SheetContentProps\n>(\n (\n { side = \"right\", className, children, showCloseButton = true, ...props },\n ref,\n ) => (\n \n \n \n {children}\n {showCloseButton && (\n \n \n Close\n \n )}\n \n \n ),\n);\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nconst SheetHeader = ({\n className,\n ...props\n}: React.HTMLAttributes) => (\n \n);\nSheetHeader.displayName = \"SheetHeader\";\n\nconst SheetFooter = ({\n className,\n ...props\n}: React.HTMLAttributes) => (\n \n);\nSheetFooter.displayName = \"SheetFooter\";\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetOverlay,\n SheetPortal,\n SheetTitle,\n SheetTrigger,\n};\n","import { ChevronDown, Menu, X } from \"lucide-react\";\nimport Link from \"next/link\";\nimport { useRouter } from \"next/router\";\nimport { useState } from \"react\";\n\nimport {\n Accordion,\n AccordionContentMenu,\n AccordionItem,\n AccordionTrigger,\n} from \"@/components/ui/accordion\";\nimport { ButtonLink } from \"@/components/ui/button\";\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\";\nimport {\n Sheet,\n SheetClose,\n SheetContent,\n SheetTrigger,\n} from \"@/components/ui/sheet\";\n\nexport function PublicMenu({ metadata }: any) {\n const [openSolution, setOpenSolution] = useState(false);\n const router = useRouter();\n\n const redirect = router.pathname !== \"/\" ? `?redirect=${router.asPath}` : \"\";\n let requestAccessRedirect = \"\";\n if (metadata && metadata.page_type == \"lab_detail\" && metadata.org) {\n requestAccessRedirect = `?referrer_org_id=${metadata.org.id}&redirect=${router.asPath}&referrer_source=organization`;\n }\n\n return (\n
\n
\n
\n \n \n \n
\n \n About\n \n
\n \n \n Listings \n \n \n \n setOpenSolution(false)}\n >\n All\n \n \n\n \n setOpenSolution(false)}\n >\n Equipment\n \n \n \n {\n setOpenSolution(false);\n }}\n >\n Services\n \n \n \n setOpenSolution(false)}\n >\n Processes\n \n \n \n \n
\n \n Careers\n \n
\n
\n
\n \n List Your Lab\n \n \n Sign in\n \n\n \n Request Access\n \n
\n \n
\n
\n );\n}\n\nfunction SideMenu() {\n const [open, setOpen] = useState(false);\n\n function close() {\n setOpen(false);\n }\n\n return (\n
\n \n \n \n \n \n
\n
\n
\n \n \"logo\"\n \n \n \n Close\n \n
\n
\n \n About\n \n \n \n \n Solutions\n \n \n \n Equipment\n \n \n Services\n \n \n \n \n \n Careers\n \n \n List Your Lab\n \n
\n
\n
\n \n Request Access\n \n \n Sign in\n \n
\n
\n \n \n
\n );\n}\n","import { ChevronDown, ChevronUp } from \"lucide-react\";\nimport Link from \"next/link\";\nimport { usePathname } from \"next/navigation\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n Tooltip,\n TooltipContent,\n ToolTipDefault,\n TooltipProvider,\n TooltipTrigger,\n} from \"@/components/ui/tooltip\";\nimport { cn } from \"@/lib/utils\";\n\nexport function MenuItem({\n label,\n icon,\n href,\n subItems,\n isUniversity,\n totalPendingApprove,\n totalPendingApprovals,\n expanded,\n toggleMenu = () => {},\n chatSummary,\n expandSubItem,\n setExpandSubItem,\n}: any) {\n const pathname = usePathname();\n const hrefCheckActive = new URL(href, window.location.origin).pathname;\n const isActive =\n hrefCheckActive === \"/\" || hrefCheckActive === \"/hosting\"\n ? pathname === hrefCheckActive\n : pathname?.includes(hrefCheckActive);\n\n const menuItemActiveClass = isUniversity\n ? \"bg-gold-200 text-coffee-900 p3-bold-mobile md:p1-bold\"\n : \"bg-emerald-500 text-gold-50 p3-bold-mobile md:p1-bold\";\n\n const menuItemHoverClass = \"hover:bg-[#323937] hover:text-white-900\";\n\n const hasSubItems = Boolean(subItems?.length);\n\n const subItemExpanded = hasSubItems && expandSubItem === href;\n\n const hasPendingBookings = label === \"Bookings\" && totalPendingApprove > 0;\n const hasPendingApprovals =\n label === \"Approvals\" && totalPendingApprovals > 0;\n\n const hasUnreadMessages =\n label === \"Messages\" && chatSummary?.unread_message_count > 0;\n\n const menuItemBadgeClass = cn(\n \"absolute -top-1 right-0 h-[22px] rounded-full bg-gold-400 px-[7px] text-gold-50 hover:bg-gold-400\",\n expanded && \"right-2 top-[30%] h-[26px] rounded-[43px] px-4 md:top-2\",\n );\n\n const Item = () => (\n !hasSubItems && toggleMenu()}\n aria-label={\n hasPendingBookings ? `Bookings ${totalPendingApprove} pending` : label\n }\n tabIndex={-1}\n >\n
{icon}
\n {expanded && {label}}\n {hasPendingBookings && (\n \n {totalPendingApprove}\n \n )}\n {hasUnreadMessages && (\n \n {chatSummary?.unread_message_count}\n \n )}\n {hasPendingApprovals && (\n \n {totalPendingApprovals}\n \n )}\n {hasSubItems && expanded && (\n \n {subItemExpanded ? (\n \n ) : (\n \n )}\n \n )}\n \n );\n\n const SubItem = ({ icon, label, href }: any) => {\n const url = new URL(href, window.location.origin);\n const subItemPathName = url.pathname;\n return (\n \n \n \n
{icon}
\n {expanded && label}\n \n \n \n );\n };\n\n return (\n <>\n \n \n \n
  • \n {hasSubItems ? (\n \n setExpandSubItem((prev: any) => (prev !== href ? href : \"\"))\n }\n aria-label={`${label} sub items`}\n tabIndex={0}\n >\n \n \n ) : (\n \n \n \n )}\n
  • \n
    \n \n

    {label}

    \n \n
    \n
    \n {hasSubItems && subItemExpanded && (\n
    \n {subItems.map(({ label, href, icon }: any) => (\n \n ))}\n
    \n )}\n \n );\n}\n","import { get } from \"lodash-es\";\nimport { LogOut, Menu, Repeat, X } from \"lucide-react\";\nimport { useState } from \"react\";\n\nimport { MenuItem } from \"@/components/sidebar/menu-item\";\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\";\nimport { Button } from \"@/components/ui/button\";\nimport { cn } from \"@/lib/utils\";\nimport useAuthStore from \"@/stores/auth-store\";\n\nexport function MobileMenu({\n menu,\n isUniversity,\n totalPendingApprove,\n totalPendingApprovals,\n chatSummary,\n userType,\n toggleUserType,\n expandSubItem,\n setExpandSubItem,\n}: any) {\n const { logout, user } = useAuthStore();\n const [expanded, setExpanded] = useState(false);\n\n function toggleMenu() {\n setExpanded(!expanded);\n }\n\n return (\n \n \n
    \n
    \n setExpanded(false)}\n >\n \"logo\"\n \n
    \n
    \n {isUniversity ? \"Lab Director View\" : \"Researcher View\"}\n
    \n
    \n \n {expanded ? : }\n \n \n \n {menu.map(({ label, icon, href, subItems }: any) => (\n
    \n \n
    \n ))}\n
    \n
    \n \n
    \n \n \n \n {get(user, \"first_name[0]\", \"\").toUpperCase() +\n get(user, \"last_name[0]\", \"\").toUpperCase()}\n \n \n {expanded && (\n
    \n

    \n {user?.first_name} {user?.last_name}\n

    \n

    \n {get(user, \"orgs[0].user_role\")}\n

    \n
    \n )}\n
    \n
    \n {[\"company\", \"university\"].includes(userType) && (\n
    \n \n \n \n
    \n )}\n logout(true)}\n title=\"Log out\"\n >\n \n \n
    \n
    \n \n \n );\n}\n","import { get } from \"lodash-es\";\nimport {\n Award,\n BadgeCheck,\n Building2,\n Calendar,\n Dna,\n FileClock,\n FileDown,\n FlaskConical,\n LayoutDashboard,\n Link as LinkIcon,\n LogOut,\n MessageSquare,\n Microscope,\n Repeat,\n Settings,\n User,\n Users,\n Wrench,\n} from \"lucide-react\";\nimport { Home } from \"lucide-react\";\nimport { TestTube2 } from \"lucide-react\";\nimport { CircleDollarSign } from \"lucide-react\";\nimport { usePathname } from \"next/navigation\";\nimport { useEffect, useState } from \"react\";\nimport useSWR from \"swr\";\n\nimport { fetchOrgBookings } from \"@/components/bookings/api\";\nimport { fetchOrgInfo } from \"@/components/lab-settings/api\";\nimport { MenuItem } from \"@/components/sidebar/menu-item\";\nimport { MobileMenu } from \"@/components/sidebar/mobile-menu\";\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\";\nimport { Button } from \"@/components/ui/button\";\nimport { cn, encodeQueryData, superFetchData } from \"@/lib/utils\";\nimport dayjs from \"@/packages/dayjs\";\nimport orgService from \"@/src/services/org.service\";\nimport useAuthStore from \"@/stores/auth-store\";\nimport useSideBarStore from \"@/stores/sidebar-store\";\n\ninterface SidebarProps {\n className?: string;\n focusSwitch?: boolean;\n}\n\nconst labMenu = (userRole: string) =>\n [\n {\n label: \"Home\",\n icon: ,\n href: \"/hosting\",\n },\n {\n label: \"Dashboard\",\n icon: ,\n href: \"/hosting/dashboard\",\n },\n {\n label: \"Calendar\",\n icon: ,\n href: \"/hosting/calendar\",\n },\n {\n label: \"Bookings\",\n icon: ,\n href: \"/hosting/bookings\",\n },\n {\n label: \"Equipment\",\n icon: ,\n href: \"/hosting/equipments\",\n },\n {\n label: \"Services\",\n icon: ,\n href: \"/hosting/services\",\n },\n {\n label: \"Scientific Process\",\n icon: ,\n href: \"/hosting/scientific-process\",\n },\n {\n label: \"Approvals\",\n icon: ,\n href: \"/hosting/lab/approvals\",\n },\n {\n label: \"Messages\",\n icon: ,\n href: \"/hosting/chat/list\",\n },\n {\n label: \"Finances\",\n icon: ,\n href: \"/hosting/finances?tab=payments\",\n },\n {\n label: \"Settings\",\n icon: ,\n href: \"/hosting/lab-settings\",\n subItems: [\n {\n label: \"Account\",\n href: \"/hosting/account\",\n icon: ,\n },\n ...(userRole === \"owner\" || userRole === \"admin\"\n ? [\n {\n label: \"Organization\",\n href: \"/hosting/organization\",\n icon: ,\n },\n {\n label: \"Members\",\n href: \"/hosting/org-members\",\n icon: ,\n },\n {\n label: \"Lab Settings\",\n href: \"/hosting/lab-settings\",\n icon: ,\n },\n {\n label: \"Subscriptions\",\n href: \"/hosting/subscriptions\",\n icon: ,\n },\n ]\n : []),\n {\n label: \"Integrations\",\n href: \"/hosting/integrations\",\n icon: ,\n },\n ],\n },\n ] as any[];\n\nconst researcherMenu = (userRole: string) =>\n [\n {\n label: \"Home\",\n icon: ,\n href: \"/home\",\n },\n {\n label: \"Bookings\",\n icon: ,\n href: \"/bookings\",\n },\n {\n label: \"Messages\",\n icon: ,\n href: \"/chat/list\",\n },\n {\n label: \"Settings\",\n icon: ,\n href: \"/user/settings\",\n subItems: [\n // {\n // label: \"Approvals\",\n // href: \"/user/approvals\",\n // icon: ,\n // },\n {\n label: \"Company\",\n href: \"/account/company/overview\",\n icon: ,\n },\n {\n label: \"Account\",\n href: \"/user/settings/account\",\n icon: ,\n },\n // ...(userRole === \"owner\" || userRole === \"admin\"\n // ? [\n // {\n // label: \"Company\",\n // href: \"/account/company\",\n // icon: ,\n // },\n // {\n // label: \"Members\",\n // href: \"/org-members\",\n // icon: ,\n // },\n // ]\n // : []),\n ],\n },\n ] as any[];\n\nconst uniOfficeMenu = () =>\n [\n {\n label: \"Approvals\",\n href: \"/\",\n icon: ,\n },\n {\n label: \"Members\",\n href: \"/org-members\",\n icon: ,\n },\n {\n label: \"Exports\",\n href: \"/university/exports\",\n icon: ,\n },\n ] as any[];\n\nconst operationsMenu = (role: string) => {\n let result = [\n {\n label: \"Organizations\",\n href: \"/operation/orgs\",\n icon: ,\n },\n {\n label: \"Subscriptions\",\n href: \"/operation/subscriptions\",\n icon: ,\n },\n ] as any[];\n if (role === \"admin\" || role === \"owner\") {\n result = [\n ...result,\n {\n label: \"Members\",\n href: \"/hosting/org-members\",\n icon: ,\n },\n {\n label: \"Tools\",\n href: \"/operation/tools\",\n icon: ,\n },\n ];\n }\n\n return result;\n};\n\nexport function Sidebar({ className }: SidebarProps) {\n const { user, logout, switchRole } = useAuthStore();\n const isLabOrResearcher = [\"company\", \"university\"].includes(user?.user_type);\n const { data, isLoading } = useSWR(\"/orgs/info\", fetchOrgInfo);\n const orgInfo = data?.org || data;\n const { expanded, toggleSidebar, latestUpdateDate, focusSwitchBtn } =\n useSideBarStore();\n\n const orgType = orgInfo?.org_type;\n\n const pathname = usePathname();\n const [expandSubItem, setExpandSubItem] = useState(pathname);\n const isUniversity = orgInfo?.org_type === \"university\";\n const isCompany = orgInfo?.org_type === \"company\";\n const { data: bookings = [], mutate } = useSWR(\n isLabOrResearcher\n ? `/orgs/bookings${encodeQueryData({\n start_time: dayjs().startOf(\"day\").subtract(1, \"month\").toISOString(),\n end_time: dayjs().startOf(\"day\").add(3, \"month\").toISOString(),\n status: \"pending_approve\",\n })}`\n : null,\n fetchOrgBookings,\n );\n const ApprovalKey = isLabOrResearcher\n ? encodeQueryData({\n start_time: dayjs().startOf(\"day\").subtract(1, \"month\").toISOString(),\n end_time: dayjs().startOf(\"day\").add(3, \"month\").toISOString(),\n status: \"pending\",\n })\n : null;\n const { data: approvalsData = [] } = orgService.useApprovals(ApprovalKey, {\n revalidateOnFocus: true,\n revalidateIfStale: true,\n });\n\n useEffect(() => {\n if (latestUpdateDate) {\n mutate();\n }\n }, [latestUpdateDate, mutate]);\n\n const { data: chatSummary } = useSWR(\n [\"company\", \"university\"].includes(user?.user_type) ? \"/chat/summary\" : \"\",\n superFetchData,\n {\n revalidateOnFocus: true,\n refreshInterval: 15000,\n },\n );\n\n const totalPendingApprove = bookings?.length;\n const totalPendingApprovals = approvalsData?.count?.pending;\n\n let menu = [] as any[];\n let typeDescription = \"\";\n\n if (user?.user_type === \"operations\") {\n typeDescription = \"Operations View\";\n menu = operationsMenu(user.role);\n } else {\n switch (orgType) {\n case \"university\":\n typeDescription = \"Lab Director View\";\n menu = labMenu(orgInfo?.user_role);\n break;\n case \"company\":\n typeDescription = \"Researcher View\";\n menu = researcherMenu(orgInfo?.user_role);\n break;\n case \"uni_office\":\n typeDescription = \"University View\";\n menu = uniOfficeMenu();\n break;\n default:\n typeDescription = \"Unknown View\";\n }\n }\n\n const switchTitle =\n orgType === \"university\" ? \"Switch to booking\" : \"Switch to hosting\";\n\n return (\n <>\n \n