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