import{a as w}from"/build/_shared/chunk-AET2SFA2.js";import{b as x}from"/build/_shared/chunk-3X23XH62.js";import{a as T}from"/build/_shared/chunk-W35ZGJOG.js";import{F as f,G as g,H as k,I as c,K as y,M as s,N as h}from"/build/_shared/chunk-C3GUTQLB.js";import{D as u,q as p,v as m,z as l}from"/build/_shared/chunk-UT3CV7CR.js";import{d}from"/build/_shared/chunk-G5WX4PPA.js";function L(n,r){let i={};for(let o of n){let e=r(o);i[e]||(i[e]=[]),i[e].push(o)}return i}var t=d(u());var H=()=>({title:"Runnable"});function W(){let{actions:n}=l(),r=L(n,o=>o.category||"Other"),i=Object.entries(r).sort(([o],[e])=>o==="Other"?1:e==="Other"?-1:o.localeCompare(e));return(0,t.jsx)(T,{title:"Actions",animationKey:p().pathname,children:(0,t.jsx)(c,{direction:"column",spacing:10,children:i.map(([o,e])=>(0,t.jsxs)(c,{direction:"column",children:[(0,t.jsx)(s,{as:"h2",size:"lg",color:"teal.900",children:o}),(0,t.jsx)(g,{spacing:4,py:2,children:e.map(a=>(0,t.jsx)(k,{children:(0,t.jsx)(I,{actionId:a.id,action:a})},a.id))})]},o))})})}function I({actionId:n,action:r}){return(0,t.jsxs)(h,{as:m,p:4,shadow:"md",borderWidth:"1px",width:350,minHeight:150,sx:{":hover":{shadow:"lg"}},to:x(`/actions/${n}`),borderRadius:"md",backgroundColor:"white",children:[(0,t.jsxs)(y,{spacing:2,children:[r.icon?(0,t.jsx)(w,{color:"teal.700",icon:r.icon}):void 0,(0,t.jsx)(s,{color:"teal.700",fontSize:"xl",children:r.title})]}),(0,t.jsx)(f,{mt:3,children:r.description})]})}export{W as default,H as meta};
