PageSourceSearch

https://www.007icu.top/assets/_layout-CrVbszRP.js

js 007icu.top collected 2026-10-09 04:34:53 UTC 3,609 bytes, 34 lines download raw bytes

1import{n as e,o as t}from"./rolldown-runtime-CMxvf4Kt.js";import{F as n,L as r}from"../vendor/vendor-data-runtime-nLFaCKB0.js";import{Ao as i,Pi as a,ca as o,g as s,hi as c,ia as l,jo as u}from"./app-const-BzFqCjOv.js";import{bo as d,vo as f,wo as p}from"./ScrollArea-CdDxdn_v.js";import{Ia as m,n as h}from"./es-D7HWafs1.js";import{a as g,d as _,y as v}from"../vendor/vendor-react-Bwss5s6Y.js";import{et as y,ko as b}from"../vendor/vendor-icons-BXJMWD35.js";import{a as x,d as S,dt as C,f as w,ht as T,lt as E,n as D,o as O,pt as k}from"./agent-Dh3-_0ai.js";import{n as A,t as j}from"./agentDocument-GhemY2N0.js";import{r as M,t as N}from"./swr-C_leGIiU.js";import{t as P}from"./swrKeys-D98yQcag.js";import{i as F,n as I}from"./global-DfKpeTkj.js";import{D as L,E as R}from"./index-Doip7UYu.js";import{a as z,o as B}from"./useProjectSkills-DrKAm0K1.js";import{n as V,t as H}from"./RightPanel-Boprx1Dy.js";import{n as U,t as W}from"./AgentDocumentsGroup-Ja61Q5O4.js";var G,K,q,J,Y,X=e((()=>{s(),h(),d(),y(),G=t(u()),n(),g(),o(),a(),V(),E(),S(),z(),N(),U(),A(),D(),O(),I(),R(),K=t(i()),q=p(({css:e,cssVar:t})=>({body:e`
2    overflow-y: auto;
3    flex: 1;
4    min-height: 0;
5  `,header:e`
6    flex-shrink: 0;
7  `,tab:e`
8    cursor: pointer;
9
10    padding-block: 4px;
11    padding-inline: 10px;
12    border: none;
13    border-radius: 6px;
14
15    font-size: 13px;
16    color: ${t.colorTextTertiary};
17
18    background: transparent;
19
20    transition:
21      color 0.15s,
22      background 0.15s;
23
24    &:hover {
25      color: ${t.colorText};
26    }
27  `,tabActive:e`
28    color: ${t.colorText};
29    background: ${t.colorFillTertiary};
30  `,tabs:e`
31    display: flex;
32    gap: 4px;
33    align-items: center;
34  `})),J=[{key:`documents`,labelKey:`workingPanel.resources.filter.documents`},{key:`skills`,labelKey:`workingPanel.skills.title`}],Y=(0,G.memo)(()=>{let{t:e}=r(`chat`),[t,n]=(0,G.useState)(null),{docId:i}=v(),a=F(e=>e.toggleRightPanel),o=x(e=>e.activeAgentId),s=x(T.isCurrentAgentHeterogeneous),u=B(o),d=x(e=>o?k.getAgencyConfigById(o)(e):void 0),p=C(d,{clientExecutionAvailable:!1,deviceRoutingAvailable:w(o),isHetero:s,workspaceScoped:x(e=>o?k.isWorkspaceAgentById(o)(e):!1)})===`device`&&d?.boundDeviceId?d.boundDeviceId:void 0,{data:h=[],error:g,isLoading:_}=M(o?P.documentsList(o):null,()=>j.listDocuments({agentId:o})),y=(0,G.useMemo)(()=>h.some(e=>e.category===c),[h]),S=(0,G.useMemo)(()=>i?h.some(e=>L(e.documentId)===i&&e.category===`skill`):!1,[i,h]),E=t??(S||!g&&!_&&!y?`skills`:`documents`);return(0,K.jsx)(H,{stableLayout:!0,defaultWidth:360,maxWidth:720,minWidth:300,children:(0,K.jsxs)(f,{height:`100%`,width:`100%`,children:[(0,K.jsxs)(f,{horizontal:!0,align:`center`,className:q.header,height:44,justify:`space-between`,paddingInline:4,children:[(0,K.jsx)(`div`,{className:q.tabs,children:J.map(t=>(0,K.jsx)(`button`,{className:`${q.tab} ${E===t.key?q.tabActive:``}`,type:`button`,onClick:()=>n(t.key),children:e(t.labelKey)},t.key))}),(0,K.jsx)(m,{icon:b,size:l,onClick:()=>a(!1)})]}),(0,K.jsx)(f,{className:q.body,width:`100%`,children:(0,K.jsx)(W,{activeFilter:E,deviceId:p,openMode:`route`,showFilterTabs:!1,showLocalProjectSkills:!1,style:{flex:1,minHeight:0},workingDirectory:u})})]})})}),Y.displayName=`AgentDocumentRightPanel`})),Z,Q,$,ee=e((()=>{h(),Z=t(u()),g(),X(),Q=t(i()),$=(0,Z.memo)(()=>(0,Q.jsxs)(f,{horizontal:!0,flex:1,height:`100%`,style:{minHeight:0,overflow:`hidden`,position:`relative`},width:`100%`,children:[(0,Q.jsx)(f,{flex:1,style:{minHeight:0,minWidth:0},children:(0,Q.jsx)(_,{})}),(0,Q.jsx)(Y,{})]})),$.displayName=`AgentDocumentLayout`}));e((()=>{ee()}))();export{$ 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.