1import{n as e,o as t}from"./rolldown-runtime-CMxvf4Kt.js";import{Sr as n,Vr as r,zr as i}from"../vendor/vendor-ai-runtime-DrDK77gy.js";import{Ao as a,jo as o}from"./app-const-BzFqCjOv.js";import{bo as s,to as c,vo as l,wo as u}from"./ScrollArea-CdDxdn_v.js";import{fa as d,n as f}from"./es-D7HWafs1.js";import{a as p,d as m}from"../vendor/vendor-react-Bwss5s6Y.js";import{ir as h,nr as g}from"./index-Doip7UYu.js";import{n as _,t as v}from"./useWorkspaceAwareNavigate--pLVtz2A.js";import{n as y,t as b}from"./WorkspaceLink-D9rct2St.js";import{n as x,t as S}from"./query-string-DCxvp9QO.js";import{n as C,t as w}from"./withSuspense-BYlySWH2.js";import{n as T,r as E}from"./const-Cx_ztRKW.js";import{n as D,t as O}from"./useQuery-mrP2tZDa.js";import{n as k,t as A}from"./useCategory-CZwlG1Db.js";import{i as j,n as M,r as N,t as P}from"./CategoryMenu-DJvO0f4M.js";var F,I,L,R,z=e((()=>{f(),S(),F=t(o()),w(),v(),y(),O(),E(),g(),n(),M(),A(),I=t(a()),L=(0,F.memo)(()=>{let e=h(e=>e.useAssistantCategories),{category:t=i.Discover,q:n,source:a}=D(),{data:o=[]}=e({q:n,source:a}),s=_(),l=k(),u=e=>x.stringifyUrl({query:{category:e===i.Discover?null:e,q:n,sort:e===i.Discover?r.Recommended:null},url:`/community/agent`},{skipNull:!0}),f=e=>{s(u(e));let t=document?.querySelector(`#${T}`);t&&t.scrollTo({behavior:`smooth`,top:0})},p=(0,F.useMemo)(()=>o.reduce((e,t)=>e+t.count,0),[o]);return(0,I.jsx)(P,{mode:`inline`,selectedKeys:[t],items:l.map(e=>{let t=o.find(t=>t.category===e.key);return{extra:e.key===`all`?p>0&&(0,I.jsx)(d,{size:`small`,style:{borderRadius:12,paddingInline:6},children:p}):t&&(0,I.jsx)(d,{size:`small`,style:{borderRadius:12,paddingInline:6},children:t.count}),...e,icon:(0,I.jsx)(c,{icon:e.icon,size:18}),label:(0,I.jsx)(b,{to:u(e.key),children:e.label})}}),onClick:e=>f(e.key)})}),R=C(L)})),B,V=e((()=>{s(),B=u(({css:e})=>({mainContainer:e` 2 position: relative; 3 `}))})),H,U;e((()=>{f(),p(),j(),z(),V(),H=t(a()),U=()=>(0,H.jsxs)(l,{horizontal:!0,className:B.mainContainer,gap:24,width:`100%`,children:[(0,H.jsx)(N,{children:(0,H.jsx)(R,{})}),(0,H.jsx)(l,{flex:1,gap:16,children:(0,H.jsx)(m,{})})]})}))();export{U as default};
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.