var c=Object.defineProperty;var t=(a,e)=>c(a,"name",{value:e,configurable:!0});import{s as d}from"./vendor-primevue-RJTR6wkG.js";import{f as p,B as m}from"./widgetPropFilter-CygYoMQt.js";import{bq as g,E as f,c as o,d as l,A as u,q as b,h as w,s as C,t as k,u as _,m as E,br as P}from"./vendor-other-yzRpIrj2.js";const B={class:"flex flex-col gap-1"},S=g({__name:"WidgetButton",props:{widget:{}},setup(a){const e=a,i=[...m,"iconClass"],r=f(()=>p(e.widget.options,i)),n=t(()=>{e.widget.callback&&e.widget.callback()},"handleClick");return(s,D)=>(l(),o("div",B,[u(P(d),E({class:"text-base-foreground w-full border-0 bg-component-node-widget-background p-2"},r.value,{"aria-label":s.widget.label,size:"small",text:!0,onClick:n}),{default:b(()=>[w(k(s.widget.label??s.widget.name)+" ",1),s.widget.options?.iconClass?(l(),o("i",{key:0,class:_(s.widget.options.iconClass)},null,2)):C("",!0)]),_:1},16,["aria-label"])]))}});export{S as default};
//# sourceMappingURL=WidgetButton-BvqmKtrj.js.map
