import{t as e}from"./jsx-runtime-CiQ1k8xo.js";import{t}from"./clsx-BcPLHiun.js";import{F as n,W as r,h as i,lt as a,p as o}from"./vscode-api-DjORcpSo.js";import{t as s}from"./proxy-BMi4zsAT.js";import{C as c,u as l}from"./app-shell-state-Dskh7Hih.js";import{t as u}from"./AnimatePresence-DCkvCKVv.js";import{t as d}from"./use-register-command-yA_5KLgb.js";import{t as f}from"./badge-Bpp-zYoJ.js";import{t as p}from"./animations-D-vdA-0W.js";var m=a();function h(){let e=(0,m.c)(4),t=n(i),r;e[0]===t?r=e[1]:(r=()=>{c(t,!t.get(l))},e[0]=t,e[1]=r);let a=r;d(`toggleSidebar`,a);let s;e[2]===t?s=e[3]:(s=[t],e[2]=t,e[3]=s),o(`toggle-sidebar`,a,s)}var g=e();function _(e){let n=(0,m.c)(50),r,i,a,o,s,c,l,u,d,p,h,_,v,y;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5],c=n[6],l=n[7],u=n[8],d=n[9],p=n[10],h=n[11],_=n[12],v=n[13],y=n[14]):({icon:r,label:s,hideLabel:o,fullWidth:u,hoverBackground:d,onClick:c,isActive:p,disabled:h,className:a,weightClassName:y,iconClassName:_,trailing:v,badge:i,...l}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s,n[6]=c,n[7]=l,n[8]=u,n[9]=d,n[10]=p,n[11]=h,n[12]=_,n[13]=v,n[14]=y);let b=u===void 0?!0:u,x=d===void 0?!0:d,S=p===void 0?!1:p,C=h===void 0?!1:h,w=_===void 0?`icon-xs`:_,T=typeof i==`number`,E=b?`flex w-full`:`inline-flex w-auto`,D=S?`bg-token-list-hover-background`:x&&`hover:bg-token-list-hover-background`,O=T&&`pr-10`,k;n[15]!==a||n[16]!==E||n[17]!==D||n[18]!==O||n[19]!==y?(k=t(`focus-visible:outline-token-border relative h-token-nav-row px-row-x py-row-y cursor-interaction shrink-0 items-center overflow-hidden rounded-lg text-left text-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50 gap-2`,E,D,O,y,a),n[15]=a,n[16]=E,n[17]=D,n[18]=O,n[19]=y,n[20]=k):k=n[20];let A=S?`page`:void 0,j=l,M=b&&`flex-1`,N=o!==void 0&&`min-h-6`,P=S?`text-token-list-active-selection-foreground`:`text-token-foreground`,F;n[21]!==M||n[22]!==N||n[23]!==P?(F=t(`flex min-w-0 items-center text-base gap-2`,M,N,P),n[21]=M,n[22]=N,n[23]=P,n[24]=F):F=n[24];let I=S&&`text-token-list-active-selection-icon-foreground`,L;n[25]!==w||n[26]!==I?(L=t(w,I),n[25]=w,n[26]=I,n[27]=L):L=n[27];let R;n[28]!==r||n[29]!==L?(R=(0,g.jsx)(r,{className:L}),n[28]=r,n[29]=L,n[30]=R):R=n[30];let z;n[31]!==o||n[32]!==s?(z=o?null:(0,g.jsx)(`span`,{className:`truncate`,children:s}),n[31]=o,n[32]=s,n[33]=z):z=n[33];let B;n[34]!==F||n[35]!==R||n[36]!==z?(B=(0,g.jsxs)(`div`,{className:F,children:[R,z]}),n[34]=F,n[35]=R,n[36]=z,n[37]=B):B=n[37];let V;n[38]!==i||n[39]!==T?(V=T?(0,g.jsx)(f,{className:`disambiguated-digits absolute top-1/2 right-[var(--padding-row-x)] -translate-y-1/2`,children:i}):null,n[38]=i,n[39]=T,n[40]=V):V=n[40];let H;return n[41]!==C||n[42]!==c||n[43]!==A||n[44]!==j||n[45]!==B||n[46]!==V||n[47]!==k||n[48]!==v?(H=(0,g.jsxs)(`button`,{type:`button`,className:k,onClick:c,"aria-current":A,disabled:C,...j,children:[B,v,V]}),n[41]=C,n[42]=c,n[43]=A,n[44]=j,n[45]=B,n[46]=V,n[47]=k,n[48]=v,n[49]=H):H=n[49],H}function v(e){let n=(0,m.c)(16),{children:r,className:i,collapsed:a,title:o,titleActions:c,titleRowClassName:l,titleClassName:d}=e,f=a==null&&`gap-1`,h;n[0]!==i||n[1]!==f?(h=t(`flex flex-col`,f,i),n[0]=i,n[1]=f,n[2]=h):h=n[2];let _;n[3]!==o||n[4]!==c||n[5]!==d||n[6]!==l?(_=o?(0,g.jsxs)(`div`,{className:t(`flex items-center justify-between gap-2`,l??`pr-0.5 pl-2`),children:[(0,g.jsx)(`div`,{className:t(`min-w-0 flex-1`,d??`text-base text-token-input-placeholder-foreground opacity-75`),children:o}),c==null?null:(0,g.jsx)(`div`,{className:`shrink-0`,children:c})]}):null,n[3]=o,n[4]=c,n[5]=d,n[6]=l,n[7]=_):_=n[7];let v;n[8]!==r||n[9]!==a||n[10]!==o?(v=a==null?(0,g.jsx)(`div`,{className:`flex flex-col gap-px`,children:r}):(0,g.jsx)(u,{initial:!1,children:a?null:(0,g.jsx)(s.div,{initial:{height:0,opacity:0},animate:{height:`auto`,opacity:1,transitionEnd:{overflow:`visible`}},exit:{height:0,opacity:0,overflow:`hidden`},transition:p,className:`overflow-hidden`,children:(0,g.jsx)(`div`,{className:t(`flex flex-col gap-px`,!!o&&`pt-1`),children:r})})}),n[8]=r,n[9]=a,n[10]=o,n[11]=v):v=n[11];let y;return n[12]!==h||n[13]!==_||n[14]!==v?(y=(0,g.jsxs)(`div`,{className:h,children:[_,v]}),n[12]=h,n[13]=_,n[14]=v,n[15]=y):y=n[15],y}var y=r(i,null);export{h as i,_ as n,v as r,y as t};
//# sourceMappingURL=settings-back-route-DkRPt_uY.js.map