PageSourceSearch

https://smartguys.ai/_next/static/chunks/8784-9d37cc4b7532d6da.js

js smartguys.ai collected 2026-10-05 15:08:25 UTC 9,289 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8784],{3317:(e,l,n)=>{n.d(l,{A:()=>N});var t=n(98887),r=n(49711),s=n(20403),a=n(30191),i=n(12267),o=n(16134),d=n(35494),c=n(91057),x=n(62504),u=n(52614),m=n(8080);function p(){let{isFullscreen:e,setIsFullscreen:l,fullscreenItem:n}=(0,i.Y_)([i.pB.isFullscreen,i.pB.setIsFullscreen,i.pB.fullscreenItem]),{t:a}=(0,m.o)();return((0,r.useEffect)(()=>{let n=n=>{"Escape"===n.key&&e&&l(!1)},t=()=>{l(!e)};return e?(document.addEventListener("keydown",n),document.body.style.overflow="hidden"):document.body.style.overflow="unset",window.addEventListener("togglePreviewFullscreen",t),()=>{document.removeEventListener("keydown",n),document.body.style.overflow="unset",window.removeEventListener("togglePreviewFullscreen",t)}},[e]),e)?(0,t.jsxs)(x.P.div,{className:"flex flex-col fixed top-0 left-0 w-screen h-screen z-[9999] bg-gray-50",initial:!1,animate:{opacity:1},transition:{duration:.2},children:[(0,t.jsx)(x.P.div,{className:"flex-shrink-0 p-[8px] bg-gray-100 border-gray-200 flex items-center ",initial:!1,animate:{y:0,opacity:1},transition:{duration:.2},children:(0,t.jsxs)("div",{className:"flex overflow-hidden justify-between items-center px-1 w-full bg-gray-100",children:[(0,t.jsx)("div",{className:"flex overflow-hidden flex-nowrap items-center",children:(null==n?void 0:n.name)&&(0,t.jsx)(x.P.div,{className:"flex flex-shrink-0 gap-2 items-center px-2 py-1 rounded-lg border-gray-200",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.3,delay:.2},children:null==n?void 0:n.name})}),(0,t.jsxs)(x.P.button,{onClick:()=>l(!1),className:"flex gap-1 items-center px-3 py-1.5 text-xs font-medium text-gray-600 bg-gray-100 hover:bg-gray-200 rounded-lg border border-gray-200 transition-colors cursor-pointer",whileHover:{scale:1.02},whileTap:{scale:.98},children:[(0,t.jsx)(s.xHI,{className:"w-4 h-4 cursor-pointer"}),(0,t.jsx)("span",{children:a(u.g["退出全屏"])})]})]})}),(0,t.jsx)("div",{className:"overflow-auto flex-1 bg-gray-100 px-[16px] pb-[16px] flex justify-center items-center",children:null==n?void 0:n.content})]}):null}var g=n(7728),f=n(68513),v=n(30677),h=n(89645),w=n(94916),y=n(41073),j=n(99497);let b=e=>{let{children:l,isExpanded:n,className:r}=e;return(0,t.jsx)(x.P.div,{initial:{x:800},animate:{x:800*!n},transition:{type:"tween",ease:"easeInOut",duration:.2},className:(0,a.cn)("flex overflow-hidden relative flex-col min-w-[400px]",n?"col-span-6 flex-1 min-h-0 h-full bg-goagent-natural-grey-divider-12 rounded-[16px] mr-[12px]":"hidden",r),children:l})};function N(e){var l,n,x;let{sendQuery:N}=e,{t:E}=(0,m.o)(),{isPreviewExpanded:k,setIsPreviewExpanded:P,selectedEmployee:A,previewList:I,finalResult:B,getCurrentPreviewData:C,selectedTeam:F,setCurReplayIndex:L,curReplayIndex:R}=(0,i.Y_)([i.pB.isPreviewExpanded,i.pB.setIsPreviewExpanded,i.pB.selectedEmployee,i.pB.previewList,i.pB.finalResult,i.pB.getCurrentPreviewData,i.pB.selectedTeam,i.pB.setCurReplayIndex,i.pB.curReplayIndex]),{roles:_}=(0,y.zn)([y.oy.roles]),S=null===(l=C())||void 0===l?void 0:l.agentRole,{getParams:z}=(0,v.P)(),{role:W}=z(),O=null===(n=C())||void 0===n?void 0:n.data,D=null===(x=C())||void 0===x?void 0:x.file,H=Array.from(new Set(I.map(e=>null==e?void 0:e.agentRole).filter(Boolean)));return((0,r.useEffect)(()=>{if(H.length>0&&!S){let l=H[H.length-1],n=-1;for(let t=I.length-1;t>=0;t-=1){var e;if((null===(e=I[t])||void 0===e?void 0:e.agentRole)===l){n=t;break}}n>=0&&L(n)}},[H,I,S,L]),W===y.JK.IMAGE_PIXEL_MASTER)?(0,t.jsx)(t.Fragment,{children:B?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"flex overflow-hidden flex-col w-full h-full",children:(0,t.jsx)("div",{className:"flex flex-col w-full h-full",children:(0,t.jsx)(j.A,{sendQuery:N})})})}):(0,t.jsx)("div",{className:"flex justify-center items-center w-full h-full",children:E(u.g["暂无文件"])})}):(0,t.jsx)(t.Fragment,{children:B?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b,{isExpanded:k,children:(0,t.jsx)("div",{className:"flex min-h-0 h-full flex-1 flex-col",children:(0,t.jsx)("div",{className:"relative min-h-0 flex-1 overflow-hidden",children:(null==B?void 0:B.name)||B?(0,t.jsx)(t.Fragment,{children:k&&(0,t.jsx)(f.A,{setPreviewExpanded:P})}):E(u.g["暂无文件"])})})}),(0,t.jsx)(g.A,{}),(0,t.jsx)(h.A,{})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b,{isExpanded:k,className:(0,a.cn)("pr-2 p-[20px] rounded-lg shadow-lg ",W===y.JK.IMAGE_PIXEL_MASTER&&"h-full m-[28px]"),children:(0,t.jsxs)("div",{className:"flex flex-col h-full gap-[20px] ",children:[(0,t.jsxs)("div",{className:"flex flex-shrink-0 justify-between items-center",children:[(0,t.jsx)("div",{className:"flex gap-2 items-center",children:(0,t.jsx)("div",{className:"fz24-w600-goagent-natural-grey-title-85",children:E(u.g["SmartGuys 虚拟电脑"])})}),(0,t.jsx)(s.Qks,{className:"h-[20px] w-[20px] text-[#ADADAD] font-bold cursor-pointer",onClick:()=>P(!1)})]}),O&&O.tool_name===w.js.FINAL_RESULT?(0,t.jsx)("div",{className:"text-[14px] text-[#666] font-bold",children:E(u.g["最终文件结果"])}):(0,t.jsxs)("div",{className:"flex flex-row items-center gap-[14px]",children:[(0,t.jsx)("div",{className:"p-[12px] h-[52px] w-[52px] flex justify-center items-center  roun
1ded-[8px] bg-goagent-natural-grey-title-85 flex-none",children:(0,d.mE)({type:null==O?void 0:O.tool_name,classNames:"w-[28px] h-[28px]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-[8px] overflow-auto",children:[(()=>{let e=!!((null==O?void 0:O.result)||(null==O?void 0:O.isResult)),l=((0,d.zZ)(null==O?void 0:O.tool_name,O)||"").replace("完成","");return(0,t.jsxs)("div",{className:"fz16-w500-goagent-natural-grey-title-85",children:[null==A?void 0:A.name,e?E(u.g.已完成):E(u.g.正在),l]})})(),(0,t.jsx)(d.Ay,{type:null==O?void 0:O.tool_name,value:O,selectedEmployee:A})]})]}),(0,t.jsx)("div",{className:"flex-1 bg-goagent-natural-grey-background-8 rounded-[8px] border border-goagent-natural-grey-border-20 overflow-hidden relative",children:(null==D?void 0:D.name)?(0,t.jsx)(c.A,{}):E(u.g["暂无文件"])}),(0,t.jsx)(o.A,{type:o.V.PREVIEW})]})}),(0,t.jsx)(p,{}),(0,t.jsx)(h.A,{})]})})}},59292:(e,l,n)=>{n.d(l,{A:()=>x});var t=n(98887),r=n(6056),s=n(20403),a=n(12267),i=n(17782),o=n(52614),d=n(8080);let c="w-[16px] h-[16px] text-[#666]";function x(e){var l,n;let{viewMode:x,setViewMode:u,content:m}=e,{setFullscreenItem:p,getCurrentPreviewData:g,isPPTGenerator:f}=(0,a.Y_)([a.pB.setFullscreenItem,a.pB.getCurrentPreviewData,a.pB.isPPTGenerator]),v=null===(l=g())||void 0===l?void 0:l.file,{t:h}=(0,d.o)(),w=[{label:h(o.g["代码"]),key:i.w.CODE,icon:(0,t.jsx)(s.LLk,{className:c}),activeIcon:(0,t.jsx)(s.LLk,{className:"text-white ".concat(c)}),onClick:()=>u(i.w.CODE)},{label:h(o.g["预览"]),key:i.w.PREVIEW,icon:(0,t.jsx)(s.c6N,{className:c}),activeIcon:(0,t.jsx)(s.c6N,{className:"text-white ".concat(c)}),onClick:()=>u(i.w.PREVIEW)}];return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsx)("span",{className:"truncate fz14-w600-goagent-natural-grey-title-85",children:f?null==v?void 0:null===(n=v.name)||void 0===n?void 0:n.split(".")[0]:null==v?void 0:v.name}),(0,t.jsxs)("div",{className:" flex flex-row gap-[12px] items-center",children:[(0,t.jsx)("div",{className:" flex flex-row items-center border-goagent-natural-grey-border-20 border rounded-[6px] p-[4px] gap-[8px] shadow flex-none",children:w.map(e=>(0,t.jsxs)("div",{className:"flex flex-row items-center gap-[8px] fz12-w400-goagent-natural-grey-title-85 cursor-pointer justify-center px-[8px] py-[4px] rounded-[4px] ".concat(x===e.key&&"bg-[#6B48FF]"),onClick:e.onClick,children:[x===e.key?e.activeIcon:e.icon,(0,t.jsx)("span",{className:"text-[12px]",children:e.label})]},e.key))}),(0,t.jsx)("div",{className:"h-[28px] w-[1px] border-r border-goagent-natural-grey-border-20"}),(0,t.jsx)(r.A,{title:h(o.g["全屏"]),children:(0,t.jsx)(s.nHt,{className:"w-[20px] h-[20px] text-goagent-natural-grey-main-text-65 cursor-pointer",onClick:()=>{p({name:null==v?void 0:v.name,content:m,path:null==v?void 0:v.path,version:null==v?void 0:v.version});let e=new CustomEvent("togglePreviewFullscreen");window.dispatchEvent(e)}})})]})]})})}},63441:(e,l,n)=>{n.d(l,{A:()=>a});var t=n(98887),r=n(17782),s=n(23045);function a(e){let{mode:l,htmlContent:n,htmlSrc:a}=e;return(0,t.jsx)(t.Fragment,{children:l===r.w.PREVIEW?(0,t.jsx)("iframe",{src:a,className:"w-full h-full bg-white border border-gray-200 shadow-sm",title:"Website Preview",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",style:{minHeight:"100%"}}):(0,t.jsx)(s.KE,{theme:"vs-light",language:"html",height:"100%",value:n,style:{userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",pointerEvents:"auto"},options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,automaticLayout:!0,fontSize:13,lineHeight:20,lineNumbers:"on",wordWrap:"on",formatOnPaste:!0,formatOnType:!0,renderWhitespace:"boundary",folding:!0,bracketPairColorization:{enabled:!0},smoothScrolling:!0,cursorBlinking:"smooth",cursorSmoothCaretAnimation:"on",contextmenu:!1,mouseWheelZoom:!0,padding:{top:16,bottom:16},readOnly:!0,selectionHighlight:!1,occurrencesHighlight:!1,domReadOnly:!0,cursorStyle:"line",hideCursorInOverviewRuler:!0}})})}}}]);

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.