import{a as h}from"/admin/build/_shared/chunk-GOVANXU2.js";import{a as L}from"/admin/build/_shared/chunk-V5IP5I3K.js";import{E as l,I as a,K as s,L as g,N as y,O as T,P as k,la as x}from"/admin/build/_shared/chunk-23T7FBRJ.js";import{l as m,o as d,t as u,y as f}from"/admin/build/_shared/chunk-A7Z7N7I3.js";import{d as p}from"/admin/build/_shared/chunk-VGRMLH5W.js";function b(i,r){let n={};for(let o of i){let e=r(o);n[e]||(n[e]=[]),n[e].push(o)}return n}var t=p(f());var A=()=>({title:"Runnable"});function R(){let{actions:i}=u(),r=b(Object.entries(i),([,o])=>{var e;return(e=o.category)!=null?e:"Other"}),n=Object.entries(r).sort(([o],[e])=>o==="Other"?1:e==="Other"?-1:o.localeCompare(e));return(0,t.jsx)(L,{title:"Actions",animationKey:m().pathname,children:(0,t.jsx)(s,{direction:"column",spacing:10,children:n.map(([o,e])=>(0,t.jsxs)(s,{direction:"column",children:[(0,t.jsx)(a,{as:"h2",size:"lg",color:"teal.900",children:o}),(0,t.jsx)(T,{spacing:4,py:2,children:e.map(([c,O])=>(0,t.jsx)(k,{children:(0,t.jsx)(C,{actionId:c,action:O})},c))})]},o))})})}function C({actionId:i,action:r}){return(0,t.jsxs)(l,{as:d,p:4,shadow:"md",borderWidth:"1px",width:350,minHeight:150,sx:{":hover":{shadow:"lg"}},to:x(`/actions/${i}`),borderRadius:"md",backgroundColor:"white",children:[(0,t.jsxs)(g,{spacing:2,children:[r.icon?(0,t.jsx)(h,{color:"teal.700",icon:r.icon}):void 0,(0,t.jsx)(a,{color:"teal.700",fontSize:"xl",children:r.title})]}),(0,t.jsx)(y,{mt:3,children:r.description})]})}export{A as a,R as b};
