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-DXKV8a2d.js";import{E as f}from"./ErrorBoundary-auKxhCvI.js";import{G as j}from"./GlobalErrors-hXAijPO_.js";import{u as g}from"./useColorMode-BoNcZP0P.js";import{a2 as w,d as M}from"./index-dNe6i2rS.js";import{D as v,a as N,b as y,e as C,f as e}from"./dropdown-menu-DCcmtBGI.js";import{I as b}from"./icon-button-BZeFL7T7.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-7N0Keti9.js";import"./titles-CzjGGAB3.js";import"./useNotifier-BGMn6HaH.js";import"./notifications-5miqOdlG.js";import"./toast-wiGcevcF.js";import"./vendor-redux-CJZrIb6x.js";import"./avatar-DDfx1nOU.js";import"./tooltip-DFFgUYh6.js";import"./vendor-radix-BRyWS4bQ.js";import"./Error-Cui9k53k.js";import"./useLastProject-Du1ajmeV.js";import"./useSortedProjects-DPrT0V3d.js";import"./index-DURBtSjL.js";import"./apply-CIuXDHQi.js";import"./concat-CTXo1gGM.js";import"./sortBy-COer1Ia5.js";import"./juxt-B5kKHsyp.js";import"./converge-D7u3m7i4.js";import"./includes-ucXR_9jq.js";import"./Error404-DQ9qHPOM.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};
