PageSourceSearch

https://vibeteams.ai/build/assets/Index-Zj3ILIXO.js

js vibeteams.ai collected 2026-10-05 14:01:42 UTC 5,094 bytes, 2 lines download raw bytes

1import{g as e,i as t,D as a,E as s,c as r,o as l,d as o,u as d,h as n,w as u,e as i,_ as c,G as p,f,F as m,B as g,C as x,A as _,t as v,x as y}from"./app-t5MKD8ts.js";import{_ as h}from"./Card.vue_vue_type_script_setup_true_lang-CV0GtJjf.js";import{_ as b}from"./CardContent.vue_vue_type_script_setup_true_lang-DZ-sZ22D.js";import{_ as w}from"./CardHeader.vue_vue_type_script_setup_true_lang-Bhsxxjs3.js";import{_ as j}from"./CardTitle.vue_vue_type_script_setup_true_lang-C07JKfZP.js";import{U as C}from"./Input-rjPt3CLf.js";import{_ as A}from"./AppLayout.vue_vue_type_script_setup_true_lang-D0WZqrhm.js";import{P as k,S as L}from"./AppSidebarHeader-CPq-CpKi.js";import{B as I}from"./users-DNAXT6Lo.js";import"./createLucideIcon-DvRKU1qv.js";import"./VisuallyHidden-BK-mIGGq.js";import"./useForwardExpose-CQxjuvBo.js";import"./mail-CSE2p_6_.js";import"./Vibeteams - secondary-Crby4fCf.js";const D={class:"flex h-full flex-1 flex-col gap-6 overflow-x-auto rounded-xl p-4"},V={class:"flex items-center justify-between"},E={class:"relative max-w-md"},F={key:0,class:"py-8 text-center"},H={key:1,class:"py-12 text-center"},S={key:2,class:"py-12 text-center"},B={key:3,class:"grid gap-6 md:grid-cols-2 lg:grid-cols-3"},N={class:"flex items-center gap-3"},U={class:"flex-1"},z={class:"mt-1 flex items-center gap-2"},G={class:"bg-secondary text-secondary-foreground rounded-full px-2 py-1 text-xs"},T={key:0,class:"rounded-full bg-green-100 px-2 py-1 text-xs text-green-800 dark:bg-green-900 dark:text-green-200"},J={key:1,class:"rounded-full bg-gray-100 px-2 py-1 text-xs text-gray-800 dark:bg-gray-800 dark:text-gray-200"},K={key:0,class:"text-muted-foreground mb-4 line-clamp-2 text-sm"},M={key:1,class:"text-muted-foreground mb-4 text-sm italic"},P={class:"flex items-center justify-between"},Y={class:"text-muted-foreground text-xs"},q={class:"flex gap-2"},O=e({__name:"Index",setup(e){const O=[{title:"Dashboard",href:"/dashboard"},{title:"Agents",href:"/agents"}],Q=t([]),R=t(!0),W=t(""),X=a(()=>W.value?Q.value.filter(e=>e.name.toLowerCase().includes(W.value.toLowerCase())||e.description?.toLowerCase().includes(W.value.toLowerCase())||e.configuration.model.toLowerCase().includes(W.value.toLowerCase())):Q.value);return s(()=>{(async()=>{try{const e=await y("/api/agents");Q.value=await e.json()}catch(e){}finally{R.value=!1}})()}),(e,t)=>(l(),r(m,null,[o(d(n),{title:"AI Agents"}),o(A,{breadcrumbs:O},{default:u(()=>[i("div",D,[i("div",V,[t[2]||(t[2]=i("div",null,[i("h1",{class:"text-3xl font-bold"},"AI Agents"),i("p",{class:"text-muted-foreground"},"Manage your AI assistants")],-1)),o(d(c),{"as-child":""},{default:u(()=>[o(d(p),{href:e.route("agents.create.page"),class:"inline-flex items-center gap-2"},{default:u(()=>[o(d(k),{class:"h-4 w-4"}),t[1]||(t[1]=f(" Create Agent ",-1))]),_:1,__:[1]},8,["href"])]),_:1})]),i("div",E,[o(d(L),{class:"text-muted-foreground absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2"}),o(d(C),{modelValue:W.value,"onUpdate:modelValue":t[0]||(t[0]=e=>W.value=e),placeholder:"Search agents...",class:"pl-10"},null,8,["modelValue"])]),R.value?(l(),r("div",F,t[3]||(t[3]=[i("div",{class:"text-muted-foreground"},"Loading agents...",-1)]))):0!==X.value.length||W.value?0===X.value.length?(l(),r("div",S,[o(d(L),{class:"text-muted-foreground mx-auto mb-4 h-16 w-16"}),t[7]||(t[7]=i("h3",{class:"mb-2 text-xl font-semibold"},"No agents found",-1)),t[8]||(t[8]=i("p",{class:"text-muted-foreground"},"Try adjusting your search terms",-1))])):(l(),r("div",B,[(l(!0),r(m,null,g(X.value,a=>(l(),x(d(h),{key:a.id,class:"transition-shadow hover:shadow-lg"},{default:u(()=>[o(d(w),null,{default:u(()=>[i("div",N,[i("div",{class:"flex h-12 w-12 items-center justify-center rounded-full text-lg font-semibold text-white",style:_({backgroundColor:a.color||"#6366f1"})},v(a.name.charAt(0).toUpperCase()),5),i("div",U,[o(d(j),{class:"text-lg"},{default:u(()=>[f(v(a.name),1)]),_:2},1024),i("div",z,[i("span",G,v(a.configuration.model),1),a.is_active?(l(),r("span",T," Active ")):(l(),r("span",J," Inactive "))])])])]),_:2},1024),o(d(b),null,{default:u(()=>[a.description?(l(),r("p",K,v(a.description),1)):(l(),r("p",M,"No description provided")),i("div",P,[i("span",Y," Created "+v(new Date(a.created_at).toLocaleDateString()),1),i("div",q,[o(d(c),{variant:"outline",size:"sm","as-child":""},{default:u(()=>[o(d(p),{href:e.route("agents.edit.page",a.id)},{default:u(()=>t[9]||(t[9]=[f(" Edit ",-1)])),_:2,__:[9]},1032,["href"])]),_:2},1024)])])]),_:2},1024)]),_:2}
1,1024))),128))])):(l(),r("div",H,[o(d(I),{class:"text-muted-foreground mx-auto mb-4 h-16 w-16"}),t[5]||(t[5]=i("h3",{class:"mb-2 text-xl font-semibold"},"No agents yet",-1)),t[6]||(t[6]=i("p",{class:"text-muted-foreground mb-6"},"Create your first AI agent to get started",-1)),o(d(c),{"as-child":""},{default:u(()=>[o(d(p),{href:e.route("agents.create.page"),class:"inline-flex items-center gap-2"},{default:u(()=>[o(d(k),{class:"h-4 w-4"}),t[4]||(t[4]=f(" Create Your First Agent ",-1))]),_:1,__:[4]},8,["href"])]),_:1})]))])]),_:1})],64))}});export{O as default};
2//# sourceMappingURL=Index-Zj3ILIXO.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.