import{a as n,k as d,j as i}from"./index-D92x6h1h.js";function r(e){const t=n();return d(()=>{const l=[e.head,e.base];return t.data?.admin&&l.push(e.adminExtra),l.push(e.tail),l.join(",")})}function a(e){return[{id:"add",label:i("Add"),tooltip:e.addTooltip,onClick:()=>e.onAdd()},{id:"edit",label:i("Edit"),tooltip:i("Edit the selected entries"),disabled:e.selection.length===0,onClick:()=>e.onEdit(e.selection)},{id:"delete",label:e.remove.inflight.value?i("Deleting…"):i("Delete"),tooltip:i("Delete the selected entries"),disabled:e.selection.length===0||e.remove.inflight.value,onClick:()=>e.remove.run(e.selection,e.clearSelection)}]}function o(e){return[{id:"edit",label:i("Edit"),tooltip:i("Edit the selected entries"),disabled:e.selection.length===0,onClick:()=>e.onEdit(e.selection)},{id:"delete",label:e.deleting?i("Deleting…"):i("Delete"),tooltip:i("Delete the selected entries"),disabled:e.selection.length===0||e.deleting,onClick:()=>e.onDelete(e.selection,e.clearSelection)},{id:"rerecord",label:e.rerecording?i("Toggling…"):i("Re-record"),tooltip:i("Toggle re-record functionality"),disabled:e.selection.length===0||e.rerecording,onClick:()=>e.onRerecord(e.selection,e.clearSelection)}]}export{r as a,a as b,o as c};
