var c=Object.defineProperty;var a=(o,e)=>c(o,"name",{value:e,configurable:!0});import{defineComponent as d,computed as m,openBlock as i,createElementBlock as l,createVNode as p,unref as f,mergeProps as g,withCtx as u,Fragment as w,createTextVNode as _,toDisplayString as C,createCommentVNode as k}from"vue";import B from"primevue/button";import{f as P,B as D}from"./widgetPropFilter-CygYoMQt.js";const E={class:"flex flex-col gap-1"},T=d({__name:"WidgetButton",props:{widget:{}},setup(o){const e=o,r=[...D,"iconClass"],n=m(()=>P(e.widget.options,r)),s=a(()=>{e.widget.callback&&e.widget.callback()},"handleClick");return(t,b)=>(i(),l("div",E,[p(f(B),g(n.value,{"aria-label":t.widget.name||t.widget.label,size:"small",onClick:s}),{default:u(()=>[t.widget.name?(i(),l(w,{key:0},[_(C(t.widget.name),1)],64)):k("",!0)]),_:1},16,["aria-label"])]))}});export{T as default};
//# sourceMappingURL=WidgetButton-CvSfAiCT.js.map
