import{i as e,n as t}from"./rolldown-runtime-ConPGZeh.js";import{$n as n,Lr as r,Nn as i,Sr as a,Xn as o,er as s,ir as c,li as l,mr as u,oi as d,or as f,rr as p}from"./vendor-primevue-D1-E3-0M.js";import{n as m,t as h}from"./Button-DXEyozJJ.js";import{o as g,s as _,t as v}from"./widgetPropFilter-XgiARzPo.js";var y,b,x=t((()=>{i(),m(),_(),y={class:`flex flex-col gap-1`},b=f({__name:`WidgetButton`,props:{widget:{}},setup(e){let t=e,i=[...v,`iconClass`],f=o(()=>g(t.widget.options,i)),handleClick=()=>{t.widget.callback&&t.widget.callback()};return(e,t)=>(a(),s(`div`,y,[c(h,u({class:`text-base-foreground w-full border-0 bg-component-node-widget-background p-2`,"aria-label":e.widget.label,size:`sm`,variant:`textonly`},f.value,{onClick:handleClick}),{default:r(()=>[p(l(e.widget.label??e.widget.name)+` `,1),e.widget.options?.iconClass?(a(),s(`i`,{key:0,class:d(e.widget.options.iconClass)},null,2)):n(``,!0)]),_:1},16,[`aria-label`])]))}})})),S;t((()=>{x(),x(),S=b}))();export{S as default};
//# sourceMappingURL=WidgetButton-D0x6eL4s.js.map