import{g as C,a as m,r as d,u as x,j as e,s as f,c as y,b as h,d as P,B as A,e as L,C as R,f as p,t as i,T as g,G as j,h as b,i as v}from"./index-O-v0LSAn.js";function M(t){return C("MuiCardActions",t)}m("MuiCardActions",["root","spacing"]);const S=t=>{const{classes:s,disableSpacing:r}=t;return h({root:["root",!r&&"spacing"]},M,s)},w=f("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:r}=t;return[s.root,!r.disableSpacing&&s.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),B=d.forwardRef(function(s,r){const n=x({props:s,name:"MuiCardActions"}),{disableSpacing:o=!1,className:a,...c}=n,l={...n,disableSpacing:o},u=S(l);return e.jsx(w,{className:y(u.root,a),ownerState:l,ref:r,...c})}),I=d.forwardRef((t,s)=>e.jsx(A,{component:"a",ref:s,...t})),k=P(I),U=t=>e.jsx(k,{...t});function z(t,s){const r={};return[...s,{id:null,name:"Misc"}].sort((o,a)=>o.id===null?1:a.id===null?-1:o.id-a.id).forEach(o=>{const a=t.filter(c=>c.category_id===o.id);a.length>0&&(r[o.name]=a)}),r}const D=L("/")({component:G});function G(){const[t,s]=D.useLoaderData(),r=d.useMemo(()=>z(t,s),[t,s]);return e.jsx(R,{sx:{mt:2},children:Object.entries(r).map(([n,o])=>e.jsxs(p,{sx:{mb:4},"data-testid":i.landingPage.projectCategories.projectCategory.main,children:[e.jsx(g,{variant:"h6",sx:{mb:2,textTransform:"uppercase"},"data-testid":i.landingPage.projectCategories.projectCategory.title,children:n}),e.jsx(p,{sx:{flexGrow:1},children:e.jsx(j,{container:!0,direction:"row",sx:{justifyContent:"flex-start",alignItems:"center"},spacing:2,"data-testid":i.landingPage.projectCategories.projectCategory.projects.main,children:o.map(a=>e.jsx(N,{project:a},a.name))})})]},n))})}function N({project:t}){return e.jsx(j,{size:{xs:6,md:4,lg:3},children:e.jsxs(b,{sx:{minHeight:120},"data-testid":i.landingPage.projectCategories.projectCategory.projects.projectCard.main,children:[e.jsx(v,{children:e.jsx(g,{gutterBottom:!0,sx:{color:"text.secondary",fontSize:14},"data-testid":i.landingPage.projectCategories.projectCategory.projects.projectCard.title,children:t.display_name})}),e.jsx(B,{"data-testid":i.landingPage.projectCategories.projectCategory.projects.projectCard.actions.main,children:e.jsx(U,{"data-testid":i.landingPage.projectCategories.projectCategory.projects.projectCard.actions.documentationLink,to:"/$projectName/$version/$",params:{projectName:t.name,version:"latest",_splat:""},size:"small",children:"Documentation"})})]})})}export{D as Route};
//# sourceMappingURL=index.lazy-n0jY_LsN.js.map
