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