import{I as a}from"./iconify-p99pbjf9.js";import{d as x,g as l,A as u,H as B,J as s,j as e,t as n,B as c,aH as g,C as k,O as M,c as m,h as v}from"./index-DOFLUERq.js";import{_ as H}from"./_plugin-vue_export-helper-DlAUqK2U.js";const C=["contenteditable","innerHTML"],N={key:0,class:"block-header-actions"},T=["title"],y=["title"],D=x({__name:"HeaderBlock",props:{text:{},editMode:{type:Boolean}},emits:["update:text","delete"],setup(t,{emit:p}){const i=t,d=p,f=m(()=>i.text?n(i.text):""),h=m(()=>[{label:n("Delete"),key:"delete",icon:()=>v(a,{icon:"tabler:trash",size:16})}]);function _(o){const r=o.target;d("update:text",r.innerText)}function b(o){o==="delete"&&d("delete")}return(o,r)=>(l(),u("div",{class:B(["header",{"edit-mode":t.editMode}])},[s("div",{class:"header-content",contenteditable:t.editMode,onBlur:_,innerHTML:f.value},null,40,C),t.editMode?(l(),u("div",N,[s("button",{class:"action-btn drag-handle",title:e(n)("Drag")},[c(e(a),{icon:"tabler:grip-vertical"})],8,T),c(e(g),{trigger:"click",options:h.value,onSelect:b},{default:k(()=>[s("button",{class:"action-btn",title:e(n)("More")},[c(e(a),{icon:"tabler:dots"})],8,y)]),_:1},8,["options"])])):M("",!0)],2))}}),z=H(D,[["__scopeId","data-v-3cd04ff6"]]);export{z as default};
