import{t as e}from"./jsx-runtime-CiQ1k8xo.js";import{t}from"./clsx-BcPLHiun.js";import{lt as n}from"./vscode-api-DjORcpSo.js";var r=n(),i=e();function a(e){let n=(0,r.c)(26),{label:a,description:o,control:s,icon:c,className:l,id:u,variant:d}=e,f=d===void 0?`default`:d,p=f===`nested`?`flex min-h-10 items-center justify-between gap-3 px-4 py-0.5 max-sm:min-h-0 max-sm:flex-col max-sm:items-stretch`:`flex items-center justify-between gap-4 p-3`,m;n[0]!==l||n[1]!==p?(m=t(p,l),n[0]=l,n[1]=p,n[2]=m):m=n[2];let h;n[3]===c?h=n[4]:(h=c==null?null:(0,i.jsx)(`span`,{className:`shrink-0`,children:c}),n[3]=c,n[4]=h);let g;n[5]===a?g=n[6]:(g=(0,i.jsx)(`div`,{className:`min-w-0 text-sm text-token-text-primary`,children:a}),n[5]=a,n[6]=g);let _;n[7]!==o||n[8]!==f?(_=o?(0,i.jsx)(`div`,{className:t(`text-token-text-secondary min-w-0`,f===`nested`?`text-xs`:`text-sm`),children:o}):null,n[7]=o,n[8]=f,n[9]=_):_=n[9];let v;n[10]!==g||n[11]!==_?(v=(0,i.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[g,_]}),n[10]=g,n[11]=_,n[12]=v):v=n[12];let y;n[13]!==h||n[14]!==v?(y=(0,i.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[h,v]}),n[13]=h,n[14]=v,n[15]=y):y=n[15];let b=f===`nested`?`flex min-w-0 flex-1 items-center justify-end max-sm:justify-stretch`:`flex shrink-0 items-center gap-2`,x;n[16]===b?x=n[17]:(x=t(b),n[16]=b,n[17]=x);let S;n[18]!==s||n[19]!==x?(S=(0,i.jsx)(`div`,{className:x,children:s}),n[18]=s,n[19]=x,n[20]=S):S=n[20];let C;return n[21]!==u||n[22]!==S||n[23]!==m||n[24]!==y?(C=(0,i.jsxs)(`div`,{id:u,className:m,children:[y,S]}),n[21]=u,n[22]=S,n[23]=m,n[24]=y,n[25]=C):C=n[25],C}function o(e){let n=(0,r.c)(17),{children:a,compactLabelInset:o,label:s,variant:c}=e,l=o===void 0?!0:o,u=c===void 0?`default`:c,d=u===`compact`?`h-[1.875rem] w-full grid-cols-[auto_minmax(0,1fr)] gap-x-6 overflow-x-hidden rounded-lg text-base leading-[18px] text-token-foreground electron:opacity-75`:`min-h-14 gap-1 px-4 py-2 sm:grid-cols-[160px_minmax(0,1fr)] sm:gap-6`,f;n[0]===d?f=n[1]:(f=t(`grid items-center`,d),n[0]=d,n[1]=f);let p;n[2]!==l||n[3]!==u?(p=t(`min-w-0`,u===`compact`?t(`flex items-center pr-2 text-left`,l&&`pl-1`):`text-sm text-token-text-secondary`),n[2]=l,n[3]=u,n[4]=p):p=n[4];let m;n[5]!==s||n[6]!==p?(m=(0,i.jsx)(`div`,{className:p,children:s}),n[5]=s,n[6]=p,n[7]=m):m=n[7];let h=u===`compact`?`flex items-center justify-end justify-self-stretch overflow-hidden`:`text-sm text-token-text-primary`,g;n[8]===h?g=n[9]:(g=t(`min-w-0`,h),n[8]=h,n[9]=g);let _;n[10]!==a||n[11]!==g?(_=(0,i.jsx)(`div`,{className:g,children:a}),n[10]=a,n[11]=g,n[12]=_):_=n[12];let v;return n[13]!==f||n[14]!==m||n[15]!==_?(v=(0,i.jsxs)(`div`,{className:f,children:[m,_]}),n[13]=f,n[14]=m,n[15]=_,n[16]=v):v=n[16],v}export{a as n,o as t};
//# sourceMappingURL=settings-row-xI_5tNBH.js.map