import{j as n}from"./sikshya-admin-sikshya-react-E_TY_un4.js";import{N as s}from"./sikshya-admin.js";function l(){return n.jsx("span",{className:"mx-1 text-slate-300 select-none dark:text-slate-600","aria-hidden":!0,children:"|"})}function c(r){const e=r.key;return e==="view"?"arrowTopRightOnSquare":e==="trash"||e==="delete_perm"||e==="delete"?"trash":e==="restore"?"arrowUturnLeft":e==="publish"?"iconPublish":e==="draft"?"iconSaveDraft":e==="pending"?"schedule":e==="private"?"cog":e==="builder"||e==="edit"?"pencil":"chevronRight"}const a="inline-flex items-center gap-0.5 rounded px-0.5 py-0.5 text-xs font-normal text-slate-400 transition-colors hover:text-slate-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 focus-visible:ring-offset-1 dark:text-slate-500 dark:hover:text-slate-300 dark:focus-visible:ring-offset-slate-900",i="h-3 w-3 shrink-0 opacity-70";function u(r){const e=c(r);return"href"in r?n.jsxs("a",{href:r.href,className:a,...r.external?{target:"_blank",rel:"noreferrer noopener"}:{},children:[n.jsx(s,{name:e,className:i}),n.jsx("span",{children:r.label})]}):n.jsxs("button",{type:"button",className:`${a} ${r.danger?"!text-red-500/80 hover:!text-red-600 dark:!text-red-400/80":""}`,onClick:r.onClick,children:[n.jsx(s,{name:r.danger?"trash":e,className:i}),n.jsx("span",{children:r.label})]})}function x({items:r,ariaLabel:e}){return r.length===0?null:n.jsx("div",{className:"row-actions mt-1.5 opacity-0 transition-opacity duration-150 group-hover:opacity-100 focus-within:opacity-100",...e?{"aria-label":e}:{},children:n.jsx("div",{className:"flex flex-wrap items-center gap-x-0 normal-case tracking-normal",children:r.map((t,o)=>n.jsxs("span",{className:"inline-flex items-center",children:[o>0?n.jsx(l,{}):null,u(t)]},t.key))})})}export{x as I};
