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