import{s as e}from"./chunk-Bj-mKKzh.js";import{n as t,t as n}from"./jsx-runtime-CiQ1k8xo.js";import{t as r}from"./clsx-BcPLHiun.js";import{lt as i}from"./vscode-api-DjORcpSo.js";import{t as a}from"./proxy-BMi4zsAT.js";var o=i(),s=e(t(),1),c=n();function l(e){let t=(0,o.c)(18),{ariaLabel:n,className:i,options:l,selectedId:u,onSelect:d}=e,f=(0,s.useId)(),p;t[0]===i?p=t[1]:(p=r(`bg-token-foreground/10 inline-grid gap-1 rounded-2xl p-1`,i),t[0]=i,t[1]=p);let m=`repeat(${l.length}, minmax(0, 1fr))`,h;t[2]===m?h=t[3]:(h={gridTemplateColumns:m},t[2]=m,t[3]=h);let g;if(t[4]!==f||t[5]!==d||t[6]!==l||t[7]!==u){let e;t[9]!==f||t[10]!==d||t[11]!==u?(e=e=>{let t=e.id===u;return(0,c.jsxs)(`button`,{className:r(`cursor-interaction relative isolate min-w-0 rounded-xl px-3 py-1.5 text-sm font-medium transition-transform duration-150 active:scale-[0.98]`,t?`text-black`:`text-token-text-secondary`),type:`button`,"aria-label":e.ariaLabel,"aria-pressed":t,onClick:()=>{d(e.id)},children:[t?(0,c.jsx)(a.span,{layoutId:f,className:`absolute inset-0 -z-10 rounded-xl bg-white shadow-sm`,transition:{type:`spring`,duration:.28,bounce:0}}):null,e.label]},e.id)},t[9]=f,t[10]=d,t[11]=u,t[12]=e):e=t[12],g=l.map(e),t[4]=f,t[5]=d,t[6]=l,t[7]=u,t[8]=g}else g=t[8];let _;return t[13]!==n||t[14]!==p||t[15]!==h||t[16]!==g?(_=(0,c.jsx)(`div`,{className:p,role:`group`,"aria-label":n,style:h,children:g}),t[13]=n,t[14]=p,t[15]=h,t[16]=g,t[17]=_):_=t[17],_}export{l as t};
//# sourceMappingURL=animated-segmented-toggle-CZpqJKDH.js.map