import{o as e}from"./rolldown-runtime-C_s2cVnS.js";import{B as t}from"./i18n-CsN8OUP9.js";import{m as n}from"./vendor-react-nmZsNlRz.js";import{t as r}from"./utils-BRwGVQJx.js";var i=t(`outline`,`activity`,`Activity`,[[`path`,{d:`M3 12h4l3 8l4 -16l3 8h4`,key:`svg-0`}]]),a=t(`outline`,`bookmark`,`Bookmark`,[[`path`,{d:`M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4`,key:`svg-0`}]]),o=t(`outline`,`chart-bar`,`ChartBar`,[[`path`,{d:`M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -6`,key:`svg-0`}],[`path`,{d:`M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -10`,key:`svg-1`}],[`path`,{d:`M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -14`,key:`svg-2`}],[`path`,{d:`M4 20h14`,key:`svg-3`}]]),s=t(`filled`,`bookmark-filled`,`BookmarkFilled`,[[`path`,{d:`M14 2a5 5 0 0 1 5 5v14a1 1 0 0 1 -1.555 .832l-5.445 -3.63l-5.444 3.63a1 1 0 0 1 -1.55 -.72l-.006 -.112v-14a5 5 0 0 1 5 -5h4z`,key:`svg-0`}]]),c=e(n(),1);function l({className:e,disabled:t=!1,onChange:n,options:i,value:a}){return(0,c.jsx)(`div`,{className:r(`inline-grid w-fit auto-cols-fr grid-flow-col gap-0.5 rounded-[5px] bg-(--ui-bg-tertiary) p-0.5`,t&&`opacity-50`,e),children:i.map(({id:e,label:i,icon:o})=>{let s=a===e;return(0,c.jsxs)(`button`,{"aria-pressed":s,className:r(`flex items-center justify-center gap-1 rounded-[3px] px-2.5 py-0.5 text-[0.6875rem] font-medium transition-colors disabled:cursor-default`,s?`bg-background text-foreground shadow-sm`:`text-muted-foreground hover:text-foreground`),disabled:t,onClick:()=>n(e),type:`button`,children:[o&&(0,c.jsx)(o,{className:`size-3`}),i]},e)})})}export{i as a,a as i,s as n,o as r,l as t};