import{r as e}from"./rolldown-runtime-DIIn1E2Q.js";import{A as t,Bt as n,D as r,F as i,I as a,K as o,R as s,Ut as c,_t as l,et as u,j as d}from"./vendor-vue-core-BdhYaYlO.js";import"./vendor-other-D9HJWI2D.js";import"./vendor-reka-ui-CSo89nDv.js";import{t as f}from"./Button-DHxPjNdi.js";import{o as p,t as m}from"./widgetPropFilter-C6hJUR5m.js";var h={class:`flex flex-col gap-1`},g=s({__name:`WidgetButton`,props:{widget:{}},setup(e){let s=e,g=[...m,`iconClass`],_=r(()=>p(s.widget.options,g)),handleClick=()=>{s.widget.callback&&s.widget.callback()};return(e,r)=>(u(),d(`div`,h,[a(f,o({class:`text-base-foreground w-full border-0 bg-component-node-widget-background p-2`,"aria-label":e.widget.label,size:`sm`,variant:`textonly`},_.value,{onClick:handleClick}),{default:l(()=>[i(c(e.widget.label??e.widget.name)+` `,1),e.widget.options?.iconClass?(u(),d(`i`,{key:0,class:n(e.widget.options.iconClass)},null,2)):t(``,!0)]),_:1},16,[`aria-label`])]))}});export{g as default};
//# sourceMappingURL=WidgetButton-BvJiLUZT.js.map