import{d,g as r,A as m,J as e,a8 as a,H as u,c as x,aI as f}from"./index-DOFLUERq.js";import{_ as b}from"./_plugin-vue_export-helper-DlAUqK2U.js";const p=["title"],M=["title"],v=["title"],w=["title"],C=d({__name:"mind_map_list_actions",props:{context:{}},setup(n){const o=n,l=x(()=>(o.context.viewMode||"list")==="card"?"actions-container card-actions":"actions-container col-actions");function c(){const i=o.context.row.name;if(!i)return;const t=f(o.context.entity);o.context.router.push({name:"MindMapEditor",query:{pagetype:t,id:i}})}return(i,t)=>(r(),m("div",{class:u(l.value)},[e("button",{class:"action-btn",onClick:t[0]||(t[0]=a(s=>n.context.openDetail(n.context.row.name),["stop"])),title:n.context.t("View")},[...t[3]||(t[3]=[e("i",{class:"fa fa-eye"},null,-1)])],8,p),e("button",{class:"action-btn",onClick:t[1]||(t[1]=a(s=>n.context.editRecord(n.context.row),["stop"])),title:n.context.t("Edit")},[...t[4]||(t[4]=[e("i",{class:"fa fa-edit"},null,-1)])],8,M),e("button",{class:"action-btn mindmap-btn",onClick:a(c,["stop"]),title:n.context.t("Open Mind Map")},[...t[5]||(t[5]=[e("i",{class:"fa fa-share-alt"},null,-1)])],8,v),e("button",{class:"action-btn delete-btn",onClick:t[2]||(t[2]=a(s=>n.context.deleteRecord(n.context.row.name),["stop"])),title:n.context.t("Delete")},[...t[6]||(t[6]=[e("i",{class:"fa fa-trash"},null,-1)])],8,w)],2))}}),g=b(C,[["__scopeId","data-v-094075a3"]]);export{g as default};
