1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SharePopover-DCOQkHUq.js","assets/rolldown-runtime-CMxvf4Kt.js","assets/index-Doip7UYu.js","vendor/vendor-ai-runtime-DrDK77gy.js","assets/app-const-BzFqCjOv.js","assets/store-JX60g0Lu.js","assets/es-D3_QMuVV.js","vendor/vendor-ui-runtime-CtdfFhWo.js","vendor/vendor-react-Bwss5s6Y.js","vendor/vendor-data-runtime-nLFaCKB0.js","assets/es-D7HWafs1.js","assets/ScrollArea-CdDxdn_v.js","assets/common-DsfyCloF.js","vendor/vendor-icons-BXJMWD35.js","assets/image-CWkvcIjp.js","assets/dist-31DrMw5o.js","assets/katex-DeoMKzDS.js","assets/index.es-DjTiFdoF.js","assets/base-ui-Bi3Dz7GG.js","assets/agent-Dh3-_0ai.js","assets/dist-Bj37lFH5.js","assets/client-DUGXaJW2.js","assets/agentDocument-GhemY2N0.js","assets/fileSystem-DmAwavrR.js","assets/swr-C_leGIiU.js","assets/swrKeys-D98yQcag.js","assets/__vite-browser-external-C7CMhtSr.js","assets/agent-Doq2Q6Wt.js","assets/_api-Bwh1mFfN.js","assets/ipc-XkRXMd72.js","assets/selectors-BZArZxfP.js","assets/keys-BAizXMAH.js","assets/remoteServer-CvRN6Lkd.js","assets/system-DG8myUWP.js","assets/user-DQWC3jQX.js","assets/icons-Bz1tvWUu.js","assets/store-DZ_eFvAj.js","assets/upload-DXx2CvIy.js","assets/p-map-D5Ha-P-7.js","assets/global-DfKpeTkj.js","assets/workspaceAwarePath-CWYUwft9.js","assets/isChunkingUnsupported-DzBdjh0S.js","assets/document-B0YnY6Mv.js","assets/abortableRequest-C6SDiPFy.js","assets/resource-D1c_4mou.js","assets/knowledgeBase-o6SNuybf.js","assets/Lexical.prod-ZYFyn_a-.js","assets/markdownToTxt-oGIVcT3Y.js","assets/selectors-IDJ5-Ts8.js","assets/onboardingMetrics-G6KV9Xr_.js","assets/src-DYf_YQ1m.js","assets/client-CZ_nGfzL.js","assets/purify.es-Z081vKev.js","assets/time-Dj7pwiip.js","assets/modelParamsResolver-nekzHtip.js","assets/aiInfra-Db7NbJs1.js","assets/normalizeError-CCdtPTTN.js","assets/_auth-Cs6ijSJn.js","assets/_url-D-hzZcqW.js","assets/aiAgent-lAVLuc1K.js","assets/device-C93cnKgk.js","assets/discover-v4iycg4x.js","assets/selectors-BLjUqOPJ.js","assets/localFileService-DGk4gV-M.js","assets/message-D0HRzm1P.js","assets/topic-BNd-QL8r.js","assets/userMemory-4Fm7oKjF.js","assets/file-DreLu7dP.js","assets/connector-CTv0KPI6.js","assets/userMemory-Cq2-UQHy.js","assets/dist--WvQXYgF.js","assets/selectors-YrzAdmlx.js","assets/useAppOrigin-CMhT8_iR.js","assets/index-B5uW1P3u.css"])))=>i.map(i=>d[i]); 2import{n as e,o as t}from"./rolldown-runtime-CMxvf4Kt.js";import{F as n,L as r,O as i,w as a}from"../vendor/vendor-data-runtime-nLFaCKB0.js";import{Yr as o,mn as s,na as c,ta as l}from"../vendor/vendor-ai-runtime-DrDK77gy.js";import{Ao as u,jo as d}from"./app-const-BzFqCjOv.js";import{Do as f,Fn as p,X as m,bo as h,to as g,vo as _,wo as v,zn as ee}from"./ScrollArea-CdDxdn_v.js";import{Ia as y,Ji as b,Ka as x,fa as te,n as S,ur as C}from"./es-D7HWafs1.js";import{n as w,r as T}from"./es-D3_QMuVV.js";import{Dh as E,Fh as D,Nh as O,Tr as ne,Up as k,Zf as re,_f as A,_h as j,_o as ie,ai as ae,dc as oe,dt as se,et as M,hl as ce,jh as le,kh as ue,lp as de,xi as fe,zu as pe}from"../vendor/vendor-icons-BXJMWD35.js";import{O as N,n as P,p as me}from"./base-ui-Bi3Dz7GG.js";import{Wn as he,Yn as ge,a as _e,ct as ve,n as ye,p as be,st as xe,y as Se}from"./agent-Dh3-_0ai.js";import{Mt as Ce,jt as we}from"./selectors-IDJ5-Ts8.js";import{E as Te,t as Ee}from"./selectors-BZArZxfP.js";import{Eo as De,Sn as Oe,gt as ke,n as Ae,vt as F}from"./store-JX60g0Lu.js";import{nr as je,rn as Me}from"./Lexical.prod-ZYFyn_a-.js";import{At as Ne,B as Pe,Tt as Fe,Ut as Ie,V as Le,an as Re,i as ze,jt as Be,on as Ve,r as He,wt as Ue,y as We}from"./ErrorContent-DH2cR0nE.js";import{$ as I,$i as Ge,Bo as Ke,Ji as qe,S as Je,Vo as Ye,Yi as Xe,ho as L,po as Ze,qa as R,rt as Qe,v as $e,w as z}from"./index-Doip7UYu.js";import{n as et,t as tt}from"./dynamic-CZjW8-Ea.js";import{n as nt,t as rt}from"./useActivityTime-DTQWkBHZ.js";import{n as it,t as at}from"./useOperationState-BCBWDiU_.js";import{r as ot,t as st}from"./ShareModal-De2KU3hn.js";import{n as ct,t as lt}from"./useGatewayReconnect-QvZEDzoR.js";import{n as ut,t as dt}from"./EditorCanvas-CDxFVVYD.js";import{i as ft,n as pt}from"./document-Cvvy0X4f.js";import{_ as mt,c as ht,g as B,h as gt,o as _t,v as vt,y as yt}from"./useDailyBriefRecommendationsUI-DdUFfH4A.js";var V,bt=e((()=>{et(),c(),V=tt(()=>l(()=>import(`./SharePopover-DCOQkHUq.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73])))})),xt,H,St,Ct,wt,Tt=e((()=>{S(),h(),M(),xt=t(d()),Qe(),H=t(u()),St={canceled:I.canceled,completed:I.completed,failed:I.failed,pending:I.backlog,timeout:{color:f.colorWarning,icon:j}},Ct=(0,xt.memo)(({size:e})=>{let t=f.colorWarning,n=`color-mix(in srgb, ${f.colorWarning} 35%, transparent)`;return(0,H.jsxs)(`svg`,{"aria-hidden":!0,fill:`none`,height:e,viewBox:`0 0 16 16`,width:e,children:[(0,H.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6.5`,stroke:n,strokeWidth:`1.5`}),(0,H.jsx)(`path`,{d:`M14.5 8 A 6.5 6.5 0 0 1 8 14.5`,fill:`none`,stroke:t,strokeLinecap:`round`,strokeWidth:`1.5`,children:(0,H.jsx)(`animateTransform`,{attributeName:`transform`,dur:`1s`,from:`0 8 8`,repeatCount:`indefinite`,to:`360 8 8`,type:`rotate`})}),(0,H.jsx)(`circle`,{cx:`8`,cy:`8`,fill:t,r:`2.5`,stroke:n,strokeWidth:`1`})]})}),wt=(0,xt.memo)(({size:e=16,status:t})=>{if(t===`running`)return(0,H.jsx)(Ct,{size:e});let n=St[t??`pending`]??St.pending;return(0,H.jsx)(g,{color:n.color,icon:n.icon,size:e})})})),Et,Dt,Ot,kt=e((()=>{S(),w(),M(),Et=t(d()),n(),Dt=t(u()),Ot=(0,Et.memo)(({accept:e,disabled:t,onFiles:n,size:i=20,title:a})=>{let{t:o}=r(`chat`);return(0,Dt.jsx)(T,{multiple:!0,accept:e,disabled:t,showUploadList:!1,beforeUpload:(e,t)=>
2(e===t.at(-1)&&n(t),!1),children:(0,Dt.jsx)(y,{disabled:t,icon:ie,size:{blockSize:i+8,size:i},title:a??o(`upload.action.tooltip`)})})})})),At=e((()=>{kt()})),U,W,jt,Mt=e((()=>{qe(),S(),P(),Me(),M(),U=t(d()),n(),At(),He(),Fe(),Ne(),dt(),vt(),Re(),W=t(u()),jt=(0,U.memo)(()=>{let{t:e}=r(`chat`),t=R(),n=Oe(e=>e.sendMessage),[i,a]=(0,U.useState)(!1),[o,s]=(0,U.useState)(!1),[c,l]=(0,U.useState)(!1),[u,d]=(0,U.useState)(!1),f=Ve(),{canUseResource:p}=Be(),m=o||c;(0,U.useEffect)(()=>{u&&t?.focus?.()},[u,t]);let h=(0,U.useCallback)(()=>{let e=t?.getLexicalEditor?.();e&&(e.getEditorState().read(()=>{s(je().getTextContent().trim().length>0)}),l(mt(t).length>0))},[t]),g=(0,U.useCallback)(e=>{yt(t,e)},[t]),v=(0,U.useCallback)(async()=>{if(i)return;let e=t?.getDocument?.(`json`),r=String(t?.getDocument?.(`markdown`)??``).trim(),o=mt(t).length>0;if(!(!r&&!o)){t?.cleanDocument?.(),s(!1),l(!1),a(!0);try{await n({editorData:e,forceRuntime:`gateway`,message:r})}finally{a(!1)}}},[t,n,i]);return p?u?(0,W.jsxs)(_,{gap:8,children:[(0,W.jsx)(Ue,{seamless:!0}),(0,W.jsx)(L,{maxHeight:240,minHeight:64,footer:(0,W.jsx)(Ze,{style:{paddingInline:8},left:(0,W.jsxs)(_,{horizontal:!0,align:`center`,gap:2,children:[(0,W.jsx)(N,{icon:le,size:`small`,type:`text`,onClick:()=>d(!1),children:e(`taskDetail.collapseReply`)}),(0,W.jsx)(Ot,{onFiles:g})]}),right:(0,W.jsx)(Xe,{disabled:!m&&!i,loading:i,shape:`round`,title:e(`taskDetail.replyInThread`),type:`primary`,onClick:v})}),children:(0,W.jsx)(ut,{editor:t,floatingToolbar:!1,placeholder:e(`taskDetail.replyPlaceholder`),style:{paddingBlock:0},onContentChange:h,onPressEnter:({event:e})=>{if(f(e))return v(),!0}})})]}):(0,W.jsxs)(_,{gap:8,children:[(0,W.jsx)(Ue,{seamless:!0}),(0,W.jsx)(N,{block:!0,icon:oe,type:`fill`,onClick:()=>d(!0),children:e(`taskDetail.sendFollowUp`)})]}):(0,W.jsx)(Ue,{seamless:!0})}),jt.displayName=`FeedbackInput`})),G,K,Nt,Pt,Ft,It=e((()=>{S(),P(),M(),G=t(d()),n(),He(),Pe(),st(),bt(),lt(),at(),Ke(),ye(),De(),we(),be(),xe(),ke(),$e(),he(),Ee(),Tt(),Mt(),K=t(u()),Nt={blockSize:32,size:16},Pt=(0,G.memo)(({agentId:e,topicId:t})=>{let n=ge(Te.isLogin);_e(e=>e.useHydrateAgentConfig)(n,e);let r=(0,G.useMemo)(()=>({agentId:e,isolatedTopic:!0,scope:`main`,topicId:t}),[e,t]),i=Ce(r),a=Ae(e=>e.dbMessagesMap[i]),o=Ae(e=>e.replaceMessages),s=it(r);ct(t,F(e=>Je.activeDrawerTopicActivity(e)?.runningOperation));let c=(0,G.useCallback)((e,t)=>(0,K.jsx)(We,{disableEditing:!0,defaultWorkflowExpandLevel:`full`,id:t,index:e},t),[]);return(0,K.jsx)(Ie,{context:r,hasInitMessages:!!a,messages:a,operationState:s,onMessagesChange:(e,t)=>
2{o(e,{context:t})},children:(0,K.jsx)(Le,{value:!0,children:(0,K.jsxs)(_,{height:`100%`,style:{overflow:`hidden`},children:[(0,K.jsx)(_,{flex:1,style:{minHeight:0,overflow:`hidden`},children:(0,K.jsx)(ze,{disableActionsBar:!0,itemContent:c})}),(0,K.jsx)(_,{paddingBlock:`0 12px`,paddingInline:12,style:{flexShrink:0},children:(0,K.jsx)(jt,{})})]})})})}),Pt.displayName=`TopicChatDrawerBody`,Ft=(0,G.memo)(()=>{let{t:e}=r([`chat`,`common`]),t=F(z.activeTopicDrawerTopicId),n=F(e=>e.activeTaskId),i=F(z.topicDrawerAgentId),a=F(z.topicDrawerTitle),o=F(Je.activeDrawerTopicActivity),s=F(e=>e.closeTopicDrawer),c=F(e=>e.useFetchTaskDetail),l=Se(ve.enableBusinessFeatures),{allowed:u,reason:d}=Ye(`edit_own_content`);c(t?n:void 0);let f=!!t&&!!i,h=o?.status,{openShareModal:g}=ot({context:(0,G.useMemo)(()=>({agentId:i??void 0,topicId:t??void 0}),[i,t])}),v=(0,G.useCallback)(()=>{t&&b(t)},[t]),ee=(0,G.useCallback)(()=>{o?.operationId&&b(o.operationId)},[o?.operationId]),x=(0,G.useMemo)(()=>[{disabled:!t,icon:k,key:`copyTopicId`,label:e(`taskDetail.topicMenu.copyId`,{defaultValue:`Copy Topic ID`}),onClick:v},{disabled:!o?.operationId,icon:k,key:`copyOperationId`,label:e(`taskDetail.topicMenu.copyOperationId`,{defaultValue:`Copy Operation ID`}),onClick:ee}],[e,t,o?.operationId,v,ee]),S=(0,K.jsxs)(_,{horizontal:!0,align:`center`,flex:1,gap:8,style:{maxWidth:`100%`,minWidth:0,overflow:`hidden`},children:[(0,K.jsx)(wt,{size:16,status:h}),o?.sourceTaskIdentifier&&(0,K.jsx)(te,{size:`small`,style:{flex:`none`},title:e(`taskDetail.topicSource`,{identifier:o.sourceTaskIdentifier}),children:o.sourceTaskIdentifier}),(0,K.jsx)(p,{ellipsis:!0,style:{flex:`0 1 auto`,minWidth:0},weight:500,children:o?.title||a||e(`taskDetail.topicDrawer.untitled`)}),o?.seq!=null&&(0,K.jsxs)(p,{fontSize:12,style:{flex:`none`},type:`secondary`,children:[`#`,o.seq]}),(0,K.jsx)(m,{items:x,children:(0,K.jsx)(y,{icon:de,size:`small`})})]}),w=(0,K.jsx)(y,{disabled:!u,icon:fe,size:Nt,title:u?e(`share`,{ns:`common`}):d,onClick:l||!u?void 0:g});return(0,K.jsx)(me,{actions:(0,K.jsx)(C,{frozen:!f,children:t?l&&u?(0,K.jsx)(V,{topicId:t,onOpenModal:g,children:w}):w:null}),getContainer:!1,height:`min(640px, calc(100dvh - 16px))`,mask:!1,minHeight:320,minWidth:360,open:f,placement:`bottomRight`,title:(0,K.jsx)(C,{frozen:!f,children:S}),width:640,styles:{body:{padding:0},panel:{maxHeight:`calc(100dvh - 16px)`},title:{boxSizing:`border-box`,maxWidth:`100%`,minWidth:0,overflow:`hidden`}},onClose:s,children:(0,K.jsx)(C,{frozen:!f,children:f&&(0,K.jsx)(Pt,{agentId:i,topicId:t})})})}),Ft.displayName=`TopicChatDrawer`})),q,J,Lt,Rt=e((()=>{qe(),S(),P(),h(),M(),q=t(d()),n(),Re(),J=t(u()),Lt=(0,q.memo)(({onSubmit:e,onCancel:t})=>{let{t:n}=r(`home`),i=R(),[a,o]=(0,q.useState)(!1),s=Ve(),c=(0,q.useCallback)(async()=>{let t=String(i?.getDocument?.(`markdown`)??``).trim();if(!(!t||a)){o(!0);try{await e(t)}finally{o(!1)}}},[i,e,a]);return(0,J.jsx)(L,{gap:8,maxHeight:100,minHeight:30,resize:!1,footer:(0,J.jsxs)(_,{horizontal:!0,align:`center`,gap:8,justify:`space-between`,padding:8,children:[(0,J.jsx)(N,{disabled:a,icon:ue,size:`small`,type:`text`,style:{color:f.colorTextDescription},onClick:t,children:n(`cancel`,{ns:`common`})}),(0,J.jsx)(Xe,{loading:a,shape:`round`,title:n(`brief.commentSubmit`),type:`primary`,onClick:c})]}),children:(0,J.jsx)(Ge,{content:``,editor:i,enablePasteMarkdown:!1,markdownOption:!1,placeholder:n(`brief.commentPlaceholder`),type:`text`,variant:`chat`,onPressEnter:({event:e})=>{if(s(e))return c(),!0}})})})})),Y,X,zt,Bt,Vt=e((()=>{s(),S(),P(),h(),M(),Y=t(d()),n(),a(),_t(),ke(),Rt(),gt(),X=t(u()),zt=(0,Y.memo)(({label:e})=>(0,X.jsxs)(_,{horizontal:!0,align:`center`,gap:4,children:[(0,X.jsx)(g,{color:f.colorTextQuaternary,icon:O,size:14}),(0,X.jsx)(p,{className:B.resolvedTag,children:e})]})),Bt=(0,Y.memo)(({actions:e,briefId:t,briefType:n,onAfterAddComment:a,onAfterResolve:s,resolvedAction:c,taskId:l,taskStatus:u,topicId:d})=>{let{t:p}=r(`home`),[m,h]=(0,Y.useState)(null),[g,v]=(0,Y.useState)(null),{resolveBrief:y,submitFeedback:b}=ht(e=>({resolveBrief:e.resolveBrief,submitFeedback:e.submitFeedback}),i),{setActiveTaskId:x,openTopicDrawer:te}=F(e=>({openTopicDrawer:e.openTopicDrawer,setActiveTaskId:e.setActiveTaskId}),i),S=!!l&&!!d,C=(0,Y.useCallback)(()=>{!l||!d||(x(l),te(d))},[te,x,l,d]),w=S?(0,X.jsx)(N,{className:`brief-view-run-btn`,icon:se,size:`small`,style:{color:f.colorTextSecondary},type:`text`,onClick:C,children:p(`brief.viewRun`)}
2):null,T=n===`result`,E=u===`scheduled`?`brief.action.confirm`:`brief.action.confirmDone`,D=T?[{key:`approve`,label:p(E),type:`resolve`}]:e??o[n]??[],O=(0,Y.useCallback)(e=>{if(T&&e.key===`approve`)return p(E);let t=`brief.action.${e.key}`,n=p(t,{defaultValue:``});return!n||n===t?e.label:n},[T,E,p]),k=(0,Y.useCallback)(async e=>{v(e);try{await y(t,e),await s?.()}finally{v(null)}},[t,y,s]),re=(0,Y.useCallback)(async e=>{if(m){if(m.type===`comment`){v(m.key);try{await y(t,m.key,e),await s?.()}finally{v(null)}}else l&&(await b(t,l,e),await a?.(),await s?.());h(null)}},[t,m,y,b,l,s,a]);if(c)return S?(0,X.jsxs)(_,{horizontal:!0,align:`center`,gap:8,justify:`space-between`,children:[w,(0,X.jsx)(zt,{label:p(`brief.resolved`)})]}):(0,X.jsx)(zt,{label:p(`brief.resolved`)});if(m)return(0,X.jsx)(Lt,{onCancel:()=>h(null),onSubmit:re});let A=D.find(e=>e.type===`comment`),j=D.find(e=>e.type!==`comment`),ie=D.filter(e=>e.type!==`comment`).slice(1).reverse(),ae=!!l&&(T||!!A),oe=T?p(`brief.editResult`):A&&O(A)||p(`brief.addFeedback`);return(0,X.jsxs)(_,{horizontal:!0,align:`center`,gap:8,justify:`space-between`,wrap:`wrap`,children:[w??(0,X.jsx)(`span`,{}),(0,X.jsxs)(_,{horizontal:!0,align:`center`,gap:8,children:[ae&&(0,X.jsx)(ee,{title:oe,children:(0,X.jsx)(N,{className:`brief-comment-btn`,icon:ne,shape:`round`,style:{color:f.colorTextSecondary},onClick:()=>h({type:`feedback`})})}),ie.map(e=>e.type===`link`?(0,X.jsx)(N,{className:B.actionBtn,href:e.url,shape:`round`,children:O(e)},e.key):(0,X.jsx)(N,{className:B.actionBtn,disabled:g===e.key,shape:`round`,onClick:()=>k(e.key),children:O(e)},e.key)),n===`error`&&(0,X.jsx)(N,{className:B.actionBtn,disabled:g===`ignore`,shape:`round`,onClick:()=>k(`ignore`),children:p(`brief.action.ignore`)}),j&&(j.type===`link`?(0,X.jsx)(N,{className:B.actionBtnPrimary,href:j.url,shape:`round`,type:`primary`,children:O(j)}):(0,X.jsx)(N,{className:B.actionBtnPrimary,disabled:g===j.key,shape:`round`,onClick:()=>k(j.key),children:O(j)}))]})]})})})),Ht,Z,Ut,Wt,Gt,Kt=e((()=>{S(),h(),M(),Ht=t(d()),pt(),Z=t(u()),Ut=v(({css:e,cssVar:t})=>({iconWrap:e` 3 display: flex; 4 flex-shrink: 0; 5 align-items: center; 6 justify-content: center; 7 8 width: 36px; 9 height: 36px; 10 border-radius: 8px; 11 12 background: ${t.colorBgContainer}; 13 `})),Wt=(0,Ht.memo)(({doc:e})=>{let t=ft(e=>e.openDocumentPreview),n=e.title||`Untitled`;return(0,Z.jsxs)(x,{clickable:!0,horizontal:!0,align:`center`,gap:12,paddingBlock:10,paddingInline:12,variant:`filled`,onClick:()=>t(e.id),children:[(0,Z.jsx)(`div`,{className:Ut.iconWrap,children:(0,Z.jsx)(g,{color:f.colorTextSecondary,icon:A,size:{size:20,strokeWidth:1.5}})}),(0,Z.jsx)(p,{ellipsis:!0,style:{flex:1,minWidth:0},weight:500,children:n}),(0,Z.jsx)(g,{color:f.colorTextQuaternary,icon:E,size:16,style:{flexShrink:0}})]})}),Gt=(0,Ht.memo)(({artifacts:e})=>{let t=e?.documents;return t?.length?(0,Z.jsx)(_,{gap:8,children:t.map(e=>(0,Z.jsx)(Wt,{doc:e},e.id))}):null})})),qt,Jt,Yt,Xt=e((()=>{S(),qt=t(d()),rt(),Jt=t(u()),Yt=(0,qt.memo)(({date:e})=>{let{text:t,title:n}=nt(e);return t?(0,Jt.jsx)(p,{fontSize:12,style:{flex:`none`},title:n,type:`secondary`,children:t}):null})})),Zt,Qt,$t,en,tn,nn,rn=e((()=>{S(),h(),M(),Zt=t(d()),Qt=t(u()),$t={decision:pe,error:ae,insight:re,result:D},en={decision:f.colorInfo,error:f.colorError,insight:f.colorInfo,result:f.colorSuccess},tn={decision:f.colorInfoBgHover,error:f.colorErrorBgHover,insight:f.colorInfoBgHover,result:f.colorSuccessBgHover},nn=(0,Zt.memo)(({size:e=28,type:t,muted:n=!1})=>{let r=$t[t]||ce,i=n?f.colorTextQuaternary:en[t]||f.colorPrimary;return(0,Qt.jsx)(x,{align:`center`,height:e,justify:`center`,style:{background:n?f.colorFillQuaternary:tn[t]},width:e,children:(0,Qt.jsx)(g,{color:i,icon:r,size:e*.6})})})})),Q,$,an,on=e((()=>{qe(),S(),P(),h(),M(),Q=t(d()),n(),Re(),$=t(u()),an=(0,Q.memo)(({onSubmit:e,onCancel:t,placeholder:n})=>{let{t:i}=r(`chat`),a=R(),[o,s]=(0,Q.useState)(!1),c=Ve(),l=(0,Q.useCallback)(async()=>{let t=String(a?.getDocument?.(`markdown`)??``).trim();if(!(!t||o)){s(!0);try{await e(t)}finally{s(!1)}}},[a,e,o]);return(0,$.jsx)(L,{gap:8,maxHeight:120,minHeight:30,resize:!1,footer:(0,$.jsxs)(_,{horizontal:!0,align:`center`,gap:8,justify:`space-between`,padding:8,children:[(0,$.jsx)(N,{disabled:o,icon:(0,$.jsx)(ue,{size:14}),size:`small`,style:{color:f.colorTextDescription},type:`text`,onClick:t,children:i(`cancel`,{ns:`common`})}),(0,$.jsx)(Xe,{loading:o,shape:`round`,title:i(`taskDetail.runFollowUp`),type:`primary`,onClick:l})]}),children:(0,$.jsx)(Ge,{content:``,editor:a,enablePasteMarkdown:!1,markdownOption:!1,placeholder:n??i(`taskDetail.runFollowUpPlaceholder`),type:`text`,variant:`chat`,onPressEnter:({event:e})=>
13{if(c(e))return l(),!0}})})})}));export{Tt as _,Yt as a,Kt as c,Ft as d,It as f,wt as g,kt as h,rn as i,Bt as l,Ot as m,on as n,Xt as o,At as p,nn as r,Gt as s,an as t,Vt as u,V as v,bt as y};
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.