PageSourceSearch

https://smartguys.ai/_next/static/chunks/9987-299858ab541e746e.js

js smartguys.ai collected 2026-10-05 15:08:38 UTC 13,848 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9987],{28135:(e,t,l)=>{l.d(t,{A:()=>y});var n=l(98887),a=l(62504),r=l(89882),i=l(11289),s=l(20403),o=l(49711),d=l(12267),c=l(53728),p=l(30191),u=l(52614),x=l(8080),m=l(51469),h=l(30677),g=l(70897),v=l(41073),f=l(64097);let w="flex justify-center items-center w-[28px] h-[28px]  rounded-[4px] hover:bg-[#f6f6f6] hover:text-[#000] cursor-pointer p-[4px] text-[#838383]",y=e=>{var t,l;let{group:y,userInfo:j,highlightedMessageId:b,registerMessageElement:N}=e,k=y[0],{t:C}=(0,x.o)(),{previewList:_}=(0,d.Y_)([d.pB.previewList]),[A,E]=(0,o.useState)(null),[F,S]=(0,o.useState)(null),P=(0,o.useRef)(null),z=(0,o.useRef)(null),{fileResources:B,chatKnowledgeFiles:M}=(0,d.Y_)([d.pB.fileResources,d.pB.chatKnowledgeFiles]),{getParams:T}=(0,h.P)(),{id:W,role:I}=T(),L=e=>{P.current&&(clearTimeout(P.current),P.current=null),S(e)},R=()=>{P.current=setTimeout(()=>{S(null)},300)};(0,o.useEffect)(()=>()=>{z.current&&clearTimeout(z.current)},[]);let D=async(e,t)=>{await (0,c.AY)(t),z.current&&clearTimeout(z.current),E(e),z.current=setTimeout(()=>{E(null),z.current=null},2e3)},Y=(0,o.useMemo)(()=>{let e={};return null==B||B.forEach(t=>{e[t.filename]=t}),e},[B]),$=(0,o.useMemo)(()=>{let e={};return null==M||M.forEach(t=>{e[t.id]=t}),e},[M]),q=async e=>{let t=await (0,m.X_)(e.id);if(t.url){let l=document.createElement("a");l.href=t.url,l.download=e.name,l.style.display="none",document.body.appendChild(l),l.click()}};return(0,n.jsxs)(a.P.div,{className:"flex flex-col items-end gap-[12px] mb-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.2},children:[(0,n.jsxs)("div",{className:"flex items-end  flex-row-reverse gap-[12px]",children:[(0,n.jsx)("div",{className:"overflow-hidden flex flex-row-reverse relative w-[40px] h-[40px] rounded-full",children:(null==j?void 0:j.avatar)?(0,n.jsx)(r.default,{src:null==j?void 0:j.avatar,alt:(null==j?void 0:j.name)||"用户头像",fill:!0,className:"object-cover"}):(0,n.jsx)("div",{className:"flex justify-center items-center w-full h-full bg-goagent-primary",children:(0,n.jsx)("span",{className:"font-bold text-white",children:null==j?void 0:null===(l=j.name)||void 0===l?void 0:null===(t=l.slice(0,1))||void 0===t?void 0:t.toUpperCase()})})}),(0,n.jsx)("div",{className:"flex items-center fz16-w600-goagent-natural-grey-title-85",children:null==j?void 0:j.name})]}),(0,n.jsx)("div",{className:"flex flex-col flex-1 items-end w-full",children:y.map((e,t)=>{var l,r,o,x,h,j,k;let _=[];if((null===(l=e.files)||void 0===l?void 0:l.length)||(null===(r=e.images)||void 0===r?void 0:r.length)){let t=[];(null===(h=e.files)||void 0===h?void 0:h.length)&&(t=[...t,...e.files]),(null===(j=e.images)||void 0===j?void 0:j[0])&&(t=[...t,null===(k=e.images)||void 0===k?void 0:k[0]]),_=[...(null==t?void 0:t.map((e,t)=>{let l=(null==e?void 0:e.split("/").pop())||"",{filename:n,size:a,extension:r,relative_path:i}=Y[l]||{},s=(0,c.u)(l),o=s?d.Lo.getState()[d.pB.getPreviewFileUrl]({sessionId:W,filePath:i}):void 0;return"localhost"!==window.location.hostname&&"127.0.0.1"!==window.location.hostname&&(o="".concat(window.location.origin).concat(o)),{id:"".concat(n||l,"-").concat(t),name:n||l,size:a,type:(null==r?void 0:r.split(".").pop())||(0,c.QC)(l),path:i||e,isImage:s,previewUrl:o}}))||[]].filter(e=>e.name)}(null===(o=e.knowledgeFiles)||void 0===o?void 0:o.length)&&(_=[..._,...e.knowledgeFiles.map(e=>{let{size:t,type:l}=$[e.id]||{};return{id:e.id,name:e.name,size:t,type:"file"===l?(0,c.QC)(e.name):"folder",isImage:!1,isKnowledgeFile:!0}})||[]]);let E=e.userInputStatus;return(0,n.jsxs)("div",{ref:t=>null==N?void 0:N(e.id,t),className:(0,p.cn)("flex relative flex-col gap-2 group max-w-[75%] scroll-mt-[120px]",(null===(x=y[t-1])||void 0===x?void 0:x.type)==="user_message"&&"mt-[30px]"),children:[(0,n.jsx)("div",{className:"flex overflow-hidden justify-end",children:_.length>0&&(0,n.jsx)("div",{className:"flex overflow-hidden justify-center items-center mt-2",children:(0,n.jsx)(i.A,{files:_,onDownloadFile:e=>{e.isKnowledgeFile?q(e):(0,m.PE)({path:e.path||e.name,name:e.name},W)},className:"overflow-hidden",genImageContent:(e,t)=>
1(0,n.jsxs)("div",{className:"flex justify-center items-center gap-[8px]",children:[I===v.JK.IMAGE_PIXEL_MASTER&&(0,n.jsx)(s.$Yr,{className:"size-[20px] text-goagent-coldgrey-350"}),(0,n.jsx)(g.A,{src:e,width:50,height:50,className:"object-cover cursor-pointer rounded-[8px]",preview:{actionsRender:()=>(0,n.jsxs)("div",{className:"px-[30px] py-[10px] flex items-center justify-center gap-[8px] rounded-[8px] bg-goagent-natural-grey-divider-12 cursor-pointer",onClick:()=>{(0,m.PE)({path:t.path||t.name,name:t.name},W)},children:[(0,n.jsx)("iconpark-icon",{name:"download",width:"20",height:"20"}),(0,n.jsx)("div",{className:"fz14-w400-white",children:C(u.g.下载)})]})}})]})})})}),(0,n.jsx)(a.P.div,{className:(0,p.cn)(_.length>0?"inline-block self-end !px-[20px] !py-[16px] shadow-sm":"!px-[20px] !py-[16px] shadow-sm",t>0?"mb-3":"","bg-[#272727] border-none transition-[box-shadow,background-color,transform] duration-300 ease-out",b===e.id&&"shadow-[0_0_0_1px_rgba(255,255,255,0.34),0_14px_42px_rgba(255,255,255,0.12)]"),style:{borderRadius:"8px",fontFamily:'PingFang SC, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif',fontSize:"16px",lineHeight:"150%",color:"#DCDCDC"},initial:{opacity:0,scale:.95,y:5},animate:{opacity:1,scale:1,y:0},transition:{duration:.3,ease:[.25,.46,.45,.94]},onMouseEnter:()=>L(e.id),onMouseLeave:R,children:(null==e?void 0:e.oldPromptWords)?(0,n.jsx)("div",{className:"relative",children:(0,n.jsx)("div",{className:"relative",children:(0,n.jsx)(f.A,{text:(0,n.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,n.jsx)("div",{className:"text-left whitespace-pre-wrap fz16-w400-goagent-natural-grey-title-85",children:C(u.g.提示词优化前)}),(0,n.jsx)("div",{className:"text-left whitespace-pre-wrap text-[16px] break-all ",children:e.oldPromptWords}),(0,n.jsx)("div",{className:"text-left whitespace-pre-wrap fz16-w400-goagent-natural-grey-title-85 mt-[4px]",children:C(u.g.提示词优化后)}),(0,n.jsx)("div",{className:"text-left whitespace-pre-wrap text-[16px] break-all",children:e.content})]})})})}):e.content&&(0,n.jsx)("div",{className:"relative",children:(0,n.jsx)(f.A,{text:e.content})})}),("sending"===E||"queued"===E)&&(0,n.jsxs)("div",{className:"mt-[6px] flex items-center justify-end gap-[5px] text-[12px] leading-[18px] text-[#8C8C8C]",children:["queued"===E?(0,n.jsx)(s.NTh,{className:"h-[14px] w-[14px]"}):(0,n.jsx)(s.Fat,{className:"h-[14px] w-[14px] animate-spin"}),(0,n.jsx)("span",{children:"queued"===E?"排队中":"sending"===E?"发送中":""})]}),(0,n.jsx)("div",{className:(0,p.cn)("absolute right-0 top-full z-10 mt-1 flex translate-y-1 items-center justify-start gap-[4px] opacity-0 transition-[opacity,transform] duration-200 ease-out pointer-events-none",F===e.id&&"translate-y-0 opacity-100 pointer-events-auto"),onMouseEnter:()=>L(e.id),onMouseLeave:R,children:A===e.id?(0,n.jsx)(s.s0,{className:w}):(0,n.jsx)(s.NGz,{className:w,onClick:()=>{e.content&&D(e.id,e.content)}})})]},"".concat(e.id,"-").concat(t))})})]},"group-".concat(k.id))}},36584:(e,t,l)=>{l.d(t,{g:()=>i});var n=l(98887),a=l(49711),r=l(48520);let i=e=>{let{command:t,output:l=[],prompt:i="ubuntu@sandbox:~ $",className:s,autoType:o=!1,autoTypeSpeed:d=50,onComplete:c}=e,[p,u]=(0,a.useState)(o?"":t),[x,m]=(0,a.useState)(!o),[h,g]=(0,a.useState)(0);return(0,a.useEffect)(()=>{if(o)if(h<t.length){let e=setTimeout(()=>{u(t.substring(0,h+1)),g(h+1)},d);return()=>clearTimeout(e)}else m(!0),null==c||c()},[h,t,o,d,c]),(0,n.jsxs)("div",{className:(0,r.A)("rounded-[8px] bg-goagent-natural-grey-background-8 px-[12px] py-[10px]","font-mono leading-6 text-white text-[13px]",s),children:[(0,n.jsxs)("div",{className:"block break-all",children:[(0,n.jsx)("span",{className:"font-semibold text-[#2DB422]",children:i}),(0,n.jsx)("span",{className:"ml-2 text-goagent-natural-grey-title-85",children:p})]}),x&&l.map((e,t)=>(0,n.jsx)("div",{className:"mt-1 whitespace-pre-wrap break-words text-goagent-natural-grey-secondary-45",children:e},t))]})}},44128:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(98887);function a(){return(0,n.jsx)("div",{className:"ellipsis-loading"})}},44850:(e,t,l)=>{l.d(t,{E:()=>n});let n={CANCELLING:"Cancelling query...",CANCELLED:"Query cancelled"}},44866:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(98887),a=l(49711),r=l(56800),i=l(98129),s=l(7603),o=l(60469),d=l(30191),c=l(92474);let p=["九维图灵科技有限公司","通过访问或使用本服务,即表示您接受并同意遵守本协议的约束。","9Dimension Technology Inc.","By accessing or using the Service, you accept and agree to be bound and abide by this Agreement."].sort((e,t)=>
1t.length-e.length),u=RegExp("(".concat(p.map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("|"),")"),"g");function x(e){if(null==e)return e;if("string"==typeof e)return e&&u.test(e)?(u.lastIndex=0,e.split(u).map((e,t)=>e?p.includes(e)?(0,n.jsx)("span",{style:{color:"var(--agreement-accent-color, #968EFF)"},children:e},"accent-".concat(t)):(0,n.jsx)(a.Fragment,{children:e},"txt-".concat(t)):null)):e;if("number"==typeof e)return e;if(Array.isArray(e))return e.map(x);if(a.isValidElement(e)){let t=e.props.children;return null==t?e:a.cloneElement(e,void 0,x(t))}return e}let m=e=>{let{filePath:t,content:l,className:p,rootClassName:u}=e,[m,h]=(0,a.useState)(l||"");(0,a.useEffect)(()=>{if(null!=l){h(l||"");return}t&&fetch(t).then(e=>e.text()).then(e=>{h(e)}).catch(e=>console.error("加载失败",e))},[t,l]);let g=u.includes("chat-markdown-container"),v=g?"chat-markdown-table-scroll":"markdown-table-scroll",f=g?(0,c.X)((0,c.n)(m)):m;return(0,n.jsx)("div",{className:(0,d.cn)(u,p),style:{width:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",...g?{overflowX:"auto",overflowY:"visible"}:{overflow:"hidden"},overflowWrap:"anywhere",wordBreak:"break-word"},children:(0,n.jsx)(r.oz,{remarkPlugins:[i.A],rehypePlugins:g?[s.A,[o.A,{ignoreMissing:!0,plainText:["md","markdown"]}]]:void 0,components:{p:e=>{let{node:t,...l}=e;return(0,n.jsx)("p",{style:{margin:0,overflow:"hidden",overflowWrap:"anywhere",wordBreak:"break-word"},...l,children:x(l.children)})},strong:e=>{let{node:t,...l}=e;return(0,n.jsx)("strong",{...l,children:x(l.children)})},a:e=>{let{node:t,...l}=e;return(0,n.jsx)("a",{target:"_blank",rel:"noopener noreferrer",style:{overflowWrap:"anywhere",wordBreak:"break-word"},...l})},img:e=>{let{node:t,...l}=e;return(0,n.jsx)("img",{loading:"lazy",style:{display:"block",maxWidth:"100%",height:"auto"},...l,alt:l.alt||""})},pre:e=>{let{node:t,...l}=e,r=a.isValidElement(l.children)&&l.children.props.className||"",i=/(?:^|\s)language-(?:md|markdown)(?:\s|$)/.test(r);return(0,n.jsx)("pre",{className:i?"chat-markdown-source":void 0,style:{margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",overflow:"hidden"},...l})},code:e=>{let{node:t,...l}=e;return(0,n.jsx)("code",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},...l})},table:e=>{let{children:t}=e;return(0,n.jsx)("div",{className:v,children:(0,n.jsx)("table",{children:t})})},details:e=>{let{node:t,...l}=e;return(0,n.jsx)("details",{...l})},summary:e=>{let{node:t,...l}=e;return(0,n.jsx)("summary",{...l})}},children:f})})}},88199:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(98887),a=l(62504),r=l(30191);let i=e=>{var t,l,n;let a="string"==typeof e.content&&e.content.trim()?e.content.trim():"string"==typeof e.oldPromptWords&&e.oldPromptWords.trim()?e.oldPromptWords.trim():"";return a?a.replace(/\s+/g," "):(null===(t=e.files)||void 0===t?void 0:t.length)||(null===(l=e.images)||void 0===l?void 0:l.length)?"用户发送了文件":(null===(n=e.knowledgeFiles)||void 0===n?void 0:n.length)?"用户引用了知识库文件":"用户消息"},s=e=>{var t,l,n;return((null===(t=e.files)||void 0===t?void 0:t.length)||0)+((null===(l=e.images)||void 0===l?void 0:l.length)||0)+((null===(n=e.knowledgeFiles)||void 0===n?void 0:n.length)||0)},o=e=>{let{messages:t,activeMessageId:l,className:o,onJump:d}=e,c=t.filter(e=>"user"===e.role);return c.length<=1?null:(0,n.jsx)("div",{className:(0,r.cn)("pointer-events-none fixed left-[46px] top-1/2 z-30 hidden -translate-y-1/2 md:block",o),children:(0,n.jsx)("div",{className:"pointer-events-auto flex max-h-[52vh] w-[22px] flex-col items-center justify-center",children:(0,n.jsxs)("div",{className:"relative flex max-h-full flex-col items-center gap-[6px] py-[8px]",children:[(0,n.jsx)("div",{className:"absolute left-1/2 top-0 h-full w-px -translate-x-1/2 bg-white/[0.08]"}),c.map((e,t)=>{let o=l===e.id,c=s(e);return(0,n.jsxs)("button",{type:"button","aria-label":"定位到第 ".concat(t+1," 条用户消息"),className:"group relative z-10 flex h-[10px] w-[22px] items-center justify-center outline-none",onClick:()=>d(e.id),children:[(0,n.jsx)(a.P.span,{layout:!0,className:(0,r.cn)("block h-[2px] rounded-full bg-[#9A9A9A]/55 transition-[width,background-color,box-shadow] duration-200",o?"w-[22px] bg-white shadow-[0_0_0_1px_rgba(255,255,255,0.2)]":"w-[9px] group-hover:w-[18px] group-hover:bg-white/85")}),(0,n.jsxs)("div",{className:"pointer-events-none absolute left-[32px] top-1/2 w-[260px] -translate-y-1/2 translate-x-[-6px] rounded-[8px] border border-white/[0.12] bg-[#F7F7F7]/95 px-[14px] py-[10px] text-left opacity-0 shadow-[0_14px_34px_rgba(0,0,0,0.24)] backdrop-blur-xl transition-[opacity,transform] duration-200 ease-out group-hover:translate-x-0 group-hover:opacity-100",children:[(0,n.jsx)("div",{className:"line-clamp-2 text-[12px] leading-[18px] text-[#747474]",children:i(e)}),c>0&&(0,n.jsx)("div",{className:"mt-[7px] text-[11px] leading-[15px] text-[#8C8C8C]",children:(0,n.jsxs)("span",{children:[c," 个附件"]})})]})]},e.id)})]})})})}}}]);

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.