import{I as o}from"./iconify-p99pbjf9.js";import{d as u,g as l,A as d,H as g,B as a,J as c,j as e,t as i,aH as f,C as k,O as p,c as C,h as B}from"./index-DOFLUERq.js";import v from"./WorkspaceChartWidget-DAAFLTLx.js";import{_ as M}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./common-DEIQtiPI.js";import"./ChartRenderer-C9pmD9Cu.js";const N={key:0,class:"card-actions"},_=["title"],S=["title"],x=["title"],y=u({__name:"ChartBlock",props:{chartName:{},label:{},chartSettings:{},editMode:{type:Boolean},height:{}},emits:["edit","delete"],setup(t,{emit:r}){const m=r,h=C(()=>[{label:i("Delete"),key:"delete",icon:()=>B(o,{icon:"tabler:trash",size:16})}]);function b(n){n==="delete"&&m("delete")}return(n,s)=>(l(),d("div",{class:g(["chart-block",{"edit-mode":t.editMode}])},[a(v,{"chart-name":t.chartName,label:t.label,"chart-settings":t.chartSettings,"edit-mode":t.editMode,height:t.height},null,8,["chart-name","label","chart-settings","edit-mode","height"]),t.editMode?(l(),d("div",N,[c("button",{class:"action-btn",onClick:s[0]||(s[0]=D=>n.$emit("edit")),title:e(i)("Edit")},[a(e(o),{icon:"tabler:edit"})],8,_),c("button",{class:"action-btn drag-handle",title:e(i)("Drag")},[a(e(o),{icon:"tabler:grip-vertical"})],8,S),a(e(f),{trigger:"click",options:h.value,onSelect:b},{default:k(()=>[c("button",{class:"action-btn",title:e(i)("More")},[a(e(o),{icon:"tabler:dots"})],8,x)]),_:1},8,["options"])])):p("",!0)],2))}}),O=M(y,[["__scopeId","data-v-b593d780"]]);export{O as default};
