import{r as m,j as o}from"./vendor-react-wBh_31cN.js";import{C as x}from"./constants-CHYRqupQ.js";import{S as h}from"./Suspense-Cri_MelV.js";import{E as f}from"./ErrorBoundary-CEgFNZGX.js";import{G as j}from"./GlobalErrors-Cf38luW9.js";import{u as g}from"./useColorMode-Drvxu4lz.js";import{a2 as w,d as M}from"./index-BKr2rJhV.js";import{D as v,a as N,b as y,e as C,f as e}from"./dropdown-menu-CUHqMoVG.js";import{I as b}from"./icon-button-FETOk6q1.js";import{aG as i,a$ as l,b0 as D}from"./vendor-icons-BUUmD6ht.js";import{O as I}from"./vendor-router-D1GqFWiT.js";import"./value-76ihWpF6.js";import"./titles-CzjGGAB3.js";import"./useNotifier-BCEAoFCf.js";import"./notifications-x-pTFTQl.js";import"./toast-3g7Fh-a0.js";import"./vendor-redux-CJZrIb6x.js";import"./avatar-U0jpGcgI.js";import"./tooltip-Da8-EbK8.js";import"./vendor-radix-BRyWS4bQ.js";import"./Error-ehOSFm_s.js";import"./useLastProject-CDGr1y3w.js";import"./useSortedProjects-B0vFqd_s.js";import"./index-BeaoFlb1.js";import"./apply-BmJxqxKH.js";import"./concat-AxOj0lUI.js";import"./sortBy-DS9fyPwj.js";import"./juxt-BvCFisbd.js";import"./converge-BDz-h6lA.js";import"./includes-D04d5Ytc.js";import"./Error404-B4n3go6x.js";import"./vendor-utils-OeoE2qq_.js";import"./vendor-grid-CeFlDWv4.js";const T=({className:n})=>{const{colorMode:p,changeColorMode:s}=g(),{colorModeIsSystem:c,setModeIsSystem:r}=m.useContext(w),t=c?"system":p,d=a=>{a==="system"?(s("system"),r(!0)):(s(a),r(!1))},u=t==="dark"?i:l;return o.jsxs(v,{children:[o.jsx(N,{asChild:!0,children:o.jsx(b,{variant:"ghost",size:"icon-sm","aria-label":"Toggle theme",className:M(n),children:o.jsx(u,{className:"size-4"})})}),o.jsx(y,{align:"end",className:"min-w-[180px]",children:o.jsxs(C,{value:t,onValueChange:d,children:[o.jsxs(e,{value:"light",children:[o.jsx(l,{className:"mr-2 size-4"}),"Light"]}),o.jsxs(e,{value:"dark",children:[o.jsx(i,{className:"mr-2 size-4"}),"Dark"]}),o.jsxs(e,{value:"system",children:[o.jsx(D,{className:"mr-2 size-4"}),"Match browser"]})]})})]})},z=()=>o.jsx("div",{className:"flex w-full h-full overflow-auto flex-col",children:o.jsx("div",{className:"flex w-full h-full",children:o.jsxs("div",{className:"flex-grow flex justify-center min-w-[939px] p-5 pr-[50px] pb-0 relative bg-muted overflow-auto overflow-x-hidden",id:"content",children:[o.jsx(T,{className:"absolute top-4 right-4 z-10"}),o.jsx("div",{className:"flex w-full h-full min-h-full flex-col relative",id:"page-content",style:{maxWidth:x},children:o.jsx(f,{children:o.jsx(h,{children:o.jsx(j,{children:o.jsx(I,{})})})})})]})})}),no=m.memo(z);export{no as default};
