module.exports=[912532,a=>{"use strict";var b=a.i(22169);a.s(["Card",()=>b.default])},833354,(a,b,c)=>{"use strict";c._=function(a){return a&&a.__esModule?a:{default:a}}},551746,a=>{"use strict";var b=a.i(532547);a.s(["ModelSelectModal",()=>b.default])},520553,a=>{"use strict";var b=a.i(187924),c=a.i(572131);a.i(807284);var d=a.i(539204),e=a.i(333923);a.i(436513);var f=a.i(24777),f=f,g=a.i(238246),h=a.i(571987),i=a.i(912532);function j({toolId:a,tool:c,status:d}){let e=d?d.installed?d.has9Router?{label:"Connected",cls:"bg-green-500/10 text-green-600 dark:text-green-400"}:{label:"Not configured",cls:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400"}:{label:"Not installed",cls:"bg-gray-500/10 text-gray-500"}:{label:"Unknown",cls:"bg-gray-500/10 text-gray-500"};return(0,b.jsx)(g.default,{href:`/dashboard/cli-tools/${a}`,className:"block",children:(0,b.jsx)(i.Card,{padding:"sm",className:"h-full overflow-hidden hover:border-primary/50 transition-colors cursor-pointer",children:(0,b.jsx)("div",{className:"flex h-full flex-col gap-2",children:(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:c.image?(0,b.jsx)(h.default,{src:c.image,alt:c.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}}):c.icon?(0,b.jsx)("span",{className:"material-symbols-outlined text-[28px]",style:{color:c.color},children:c.icon}):null}),(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsx)("h3",{className:"font-medium text-sm truncate",children:c.name}),(0,b.jsx)("span",{className:`inline-block mt-1 px-1.5 py-0.5 text-[10px] font-medium rounded-full ${e.cls}`,children:e.label})]}),(0,b.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px] shrink-0",children:"chevron_right"})]})})})})}a.s(["default",0,function({machineId:a}){let[g,h]=(0,c.useState)(!0),[i,k]=(0,c.useState)({});if((0,c.useEffect)(()=>{let a=!0;return(async()=>{try{let b=await fetch("/api/cli-tools/all-statuses");b.ok&&a&&k(await b.json())}catch(a){console.log("Error fetching tool statuses:",a)}finally{a&&h(!1)}})(),()=>{a=!1}},[]),g)return(0,b.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4",children:[(0,b.jsx)(d.CardSkeleton,{}),(0,b.jsx)(d.CardSkeleton,{}),(0,b.jsx)(d.CardSkeleton,{}),(0,b.jsx)(d.CardSkeleton,{}),(0,b.jsx)(d.CardSkeleton,{}),(0,b.jsx)(d.CardSkeleton,{})]});let l=Object.entries(e.CLI_TOOLS),m=Object.entries(e.MITM_TOOLS);return(0,b.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-6 px-1 sm:px-0",children:[(0,b.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4",children:l.map(([a,c])=>(0,b.jsx)(j,{toolId:a,tool:c,status:i[a]},a))}),(0,b.jsxs)("div",{className:"flex flex-col gap-3 sm:gap-4",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,b.jsx)("span",{className:"material-symbols-outlined text-[18px] text-primary",children:"security"}),(0,b.jsx)("h2",{className:"text-sm font-semibold text-text-main",children:"MITM Tools"})]}),(0,b.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4",children:m.map(([a,c])=>(0,b.jsx)(f.default,{tool:c},a))})]})]})}],520553)}];

//# sourceMappingURL=_0ubz_c4._.js.map