import{I as i}from"./iconify-p99pbjf9.js";import{d as b,g as r,A as c,J as s,D as k,B as a,j as t,t as l,O as m,G as p,H as u}from"./index-DOFLUERq.js";import{_ as $}from"./_plugin-vue_export-helper-DlAUqK2U.js";const f={class:"block-content"},v={key:0,class:"block-actions"},B=["title"],y=["title"],C=["title"],g=["title"],h=["title"],z=b({__name:"BaseBlock",props:{type:{},span:{},editMode:{type:Boolean},editable:{type:Boolean}},emits:["edit","expand","shrink","delete"],setup(o){return(n,e)=>(r(),c("div",{class:u(["workspace-block",[`block-${o.type}`,{"edit-mode":o.editMode}]]),style:p({gridColumn:`span ${o.span}`})},[s("div",f,[k(n.$slots,"default",{},void 0,!0)]),o.editMode?(r(),c("div",v,[s("button",{class:"action-btn drag-handle",title:t(l)("Drag")},[a(t(i),{icon:"tabler:grip-vertical"})],8,B),o.editable?(r(),c("button",{key:0,class:"action-btn",onClick:e[0]||(e[0]=d=>n.$emit("edit")),title:t(l)("Edit")},[a(t(i),{icon:"tabler:edit"})],8,y)):m("",!0),s("button",{class:"action-btn",onClick:e[1]||(e[1]=d=>n.$emit("expand")),title:t(l)("Expand")},[a(t(i),{icon:"tabler:arrows-maximize"})],8,C),s("button",{class:"action-btn",onClick:e[2]||(e[2]=d=>n.$emit("shrink")),title:t(l)("Shrink")},[a(t(i),{icon:"tabler:arrows-minimize"})],8,g),s("button",{class:"action-btn delete-btn",onClick:e[3]||(e[3]=d=>n.$emit("delete")),title:t(l)("Delete")},[a(t(i),{icon:"tabler:trash"})],8,h)])):m("",!0)],6))}}),E=$(z,[["__scopeId","data-v-c35f7ccc"]]);export{E as default};
