PageSourceSearch

https://smartguys.ai/_next/static/chunks/573-481cda64a87c63e2.js

js smartguys.ai collected 2026-10-05 15:06:56 UTC 46,176 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[573],{740:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var a=n(71986);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,r=a.$,s=(e,t)=>n=>{var a;if((null==t?void 0:t.variants)==null)return r(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:s,defaultVariants:l}=t,o=Object.keys(s).map(e=>{let t=null==n?void 0:n[e],a=null==l?void 0:l[e];if(null===t)return null;let r=i(t)||i(a);return s[e][r]}),c=n&&Object.entries(n).reduce((e,t)=>{let[n,a]=t;return void 0===a||(e[n]=a),e},{});return r(e,o,null==t?void 0:null===(a=t.compoundVariants)||void 0===a?void 0:a.reduce((e,t)=>{let{class:n,className:a,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...c}[t]):({...l,...c})[t]===n})?[...e,n,a]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},4987:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var a=n(9185),i=n(67346),r=n(49711),s=n(82618),l=n(56533),o={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},c=function(e){Object.keys(o).forEach(function(t){e.style.setProperty(t,o[t],"important")})},d=null,u=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize},g=function(){},p=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],h=!!document.documentElement.currentStyle,m=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n=p.reduce(function(e,n){return e[n]=t[n],e},{}),a=n.boxSizing;if(""===a)return null;h&&"border-box"===a&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var i=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),r=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:i,borderSize:r}};function x(e,t,n){var a=(0,s.A)(n);r.useLayoutEffect(function(){var n=function(e){return a.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var f=function(e,t){x(document.body,"reset",function(n){e.current.form===n.target&&t(n)})},y=function(e){x(window,"resize",e)},b=function(e){x(document.fonts,"loadingdone",e)},v=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],w=r.forwardRef(function(e,t){var n=e.cacheMeasurements,s=e.maxRows,o=e.minRows,p=e.onChange,h=void 0===p?g:p,x=e.onHeightChange,w=void 0===x?g:x,_=(0,i.A)(e,v),j=void 0!==_.value,k=r.useRef(null),N=(0,l.A)(k,t),S=r.useRef(0),C=r.useRef(),I=function(){var e=k.current,t=n&&C.current?C.current:m(e);if(t){C.current=t;var a,i,r,l,g,p,h,x,f,y,b,v=(a=e.value||e.placeholder||"x",void 0===(i=o)&&(i=1),void 0===(r=s)&&(r=1/0),d||((d=document.createElement("textarea")).setAttribute("tabindex","-1"),d.setAttribute("aria-hidden","true"),c(d)),null===d.parentNode&&document.body.appendChild(d),l=t.paddingSize,g=t.borderSize,h=(p=t.sizingStyle).boxSizing,Object.keys(p).forEach(function(e){d.style[e]=p[e]}),c(d),d.value=a,x=u(d,t),d.value=a,x=u(d,t),d.value="x",y=(f=d.scrollHeight-l)*i,"border-box"===h&&(y=y+l+g),x=Math.max(y,x),b=f*r,"border-box"===h&&(b=b+l+g),[x=Math.min(b,x),f]),_=v[0],j=v[1];S.current!==_&&(S.current=_,e.style.setProperty("height",_+"px","important"),w(_,{rowHeight:j}))}};return r.useLayoutEffect(I),f(k,function(){if(!j){var e=k.current.value;requestAnimationFrame(function(){var t=k.current;t&&e!==t.value&&I()})}}),y(I),b(I),r.createElement("textarea",(0,a.A)({},_,{onChange:function(e){j||I(),h(e)},ref:N}))})},9185:(e,t,n)=>{"use strict";function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}n.d(t,{A:()=>a})},21835:e=>{e.exports={footer:"styles_footer__wNzel",fullScreenSection:"styles_fullScreenSection__CDIK6",snapStart:"styles_snapStart__wJWoR",snapCenter:"styles_snapCenter__dAlOq",snapEnd:"styles_snapEnd__oRlTX",footerLink:"styles_footerLink__Yjnvv",footerLinks:"styles_footerLinks__cFfMm",masonryGrid:"styles_masonryGrid__5MQv_",card:"styles_card__617Io",skeletonImage:"styles_skeletonImage__4lgUD",cardImageContainer:"styles_cardImageContainer__Pho6T",cardImage:"styles_cardImage__nXTvR",cardImagePlaceholder:"styles_cardImagePlaceholder__n7Gg4",cardImageGradient:"styles_cardImageGradient__AnvYa",cardPlayButton:"styles_cardPlayButton__ua9Fm",cardFooter:"styles_cardFooter__FnM4P",cardUserInfo:"styles_cardUserInfo__Mz_62",cardAvatar:"styles_cardAvatar__VHwvA",cardAvatarImage:"styles_cardAvatarImage__BSN2M",cardTextContainer:"styles_cardTextContainer__09pbY",cardTitle:"styles_cardTitle__EMIxu",cardSubtitle:"styles_cardSubtitle__FFliW",cardLikeWrapper:"styles_cardLikeWrapper___cJFE",cardLikeCount:"styles_cardLikeCount__ItOXY",cardLikeButton:"styles_cardLikeButton__nfW_I",cardLikeIcon:"styles_cardLikeIcon___j0u5",loadMoreBtn:"styles_loadMoreBtn__8QLXa",galleryTitle:"styles_galleryTitle__OxHN3",gallerySubtitle:"styles_gallerySubtitle__Mc7SO",homeInputBox:"styles_homeInputBox___90Tq",scrollHint:"styles_scrollHint__2Yjlc",scrollHintIcon:"styles_scrollHintIcon__NLRMQ","scroll-hint-bob":"styles_scroll-hint-bob__xXRFI",tourTitle:"styles_tourTitle__alp8o",tourText:"styles_tourText__eH7ZM",tourStrong:"styles_tourStrong__3zvQ_",backToTopBtn:"styles_backToTopBtn__695cz",snapEndSpacer:"styles_snapEndSpacer__acCXw"}},28866:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>et});var a=n(98887),i=n(49711),r=n(62742),s=n(84943),l=n(62504),o=n(20403),c=n(52614),d=n(55628),u=n(52463);let g=(0,u.A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),p=(0,u.A)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]),h=(0,u.A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),m=(0,u.A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),x=(0,i.createContext)(null);function f(e){var t,n,r,s,l,o;let{children:u,onComplete:f,isTourCompleted:y=!1}=e,[b,v]=(0,i.useState)([]),[w,_]=(0,i.useState)(-1),[j,k]=(0,i.useState)(null),[N,S]=(0,i.useState)(y),C=(0,i.useCallback)(()=>{if(w>=0&&w<b.length){var e,t;let n=function(e){let t=document.getElementById(e);if(!t)return null;let n=t.getBoundingClientRect();return{top:n.top,left:n.left,width:n.width,height:n.height}}(null!==(t=null===(e=b[w])||void 0===e?void 0:e.selectorId)&&void 0!==t?t:"");n&&k(n)}},[w,b]);(0,i.useEffect)(()=>(C(),window.addEventListener("resize",C),window.addEventListener("scroll",C),()=>{window.removeEventListener("resize",C),window.removeEventListener("scroll",C)}),[C]);let I=(0,i.useCallback)(async()=>{_(e=>e>=b.length-1?-1:e+1),w===b.length-1&&(F(!0),null==f||f())},[b.length,f,w]),E=(0,i.useCallback)(()=>{_(e=>e>0?e-1:e)},[]),T=(0,i.useCallback)(()=>{_(-1)},[]),M=(0,i.useCallback)(()=>{y||_(0)},[y]),A=(0,i.useCallback)(e=>{var t,n,a,i,r;if(w>=0&&j&&(null===(t=b[w])||void 0===t?void 0:t.onClickWithinArea)){let t=e.clientX+window.scrollX,s=e.clientY+window.scrollY;t>=j.left&&t<=j.left+((null===(n=b[w])||void 0===n?void 0:n.width)||j.width)&&s>=j.top&&s<=j.top+((null===(a=b[w])||void 0===a?void 0:a.height)||j.height)&&(null===(i=(r=b[w]).onClickWithinArea)||void 0===i||i.call(r))}},[w,j,b]);(0,i.useEffect)(()=>(window.addEventListener("click",A),()=>{window.removeEventListener("click",A)}),[A]);let F=(0,i.useCallback)(e=>{S(e)},[]),B=w===b.length-1,z=document.getElementById("home-input"),P=z?z.getBoundingClientRect().width:400;return(0,a.jsxs)(x.Provider,{value:{currentStep:w,totalSteps:b.length,nextStep:I,previousStep:E,endTour:T,isActive:w>=0,startTour:M,setSteps:v,steps:b,isTourCompleted:N,setIsTourCompleted:F},children:[u,w>=0&&j&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed inset-0",style:{zIndex:50,pointerEvents:"none"}}),j&&(0,a.jsx)("div",{style:{position:"fixed",top:Math.round(j.top)+"px",left:Math.round(j.left)+"px",width:(null!==(l=null===(t=b[w])||void 0===t?void 0:t.width)&&void 0!==l?l:j.width)+"px",height:(null!==(o=null===(n=b[w])||void 0===n?void 0:n.height)&&void 0!==o?o:j.height)+"px",borderRadius:0===w?16:8,boxShadow:"0 0 0 9999px #00000080",zIndex:60,pointerEvents:"auto"}}),(0,a.jsxs)("div",{style:{position:"fixed",top:20,right:20,zIndex:1e3,display:"flex",gap:"8px",alignItems:"center"},children:[w>0&&(0,a.jsx)("button",{onClick:E,className:"flex justify-center items-center w-10 h-10 rounded-full transition-all duration-200 hover:bg-white/20",style:{background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.3)",color:"#fff"},children:(0,a.jsx)(g,{className:"w-5 h-5"})}),(0,a.jsx)("button",{onClick:T,className:"px-4 py-2 text-sm font-medium rounded-full transition-all duration-200 hover:bg-white/20",style:{background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.3)",color:"#fff"},children:(0,d.t)(c.g["跳过"])}),(0,a.jsx)("button",{onClick:I,className:"flex gap-2 items-center px-4 py-2 text-sm font-semibold rounded-full transition-all duration-200",style:{background:"#7C86FF",color:"#fff",boxShadow:"0 2px 8px 0 #7C86FF80"},children:B?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p,{className:"w-4 h-4"}),(0,d.t)(c.g["结束"])]}):(0,a.jsxs)(a.Fragment,{children:[(0,d.t)(c.g["下一步"]),(0,a.jsx)(h,{className:"w-4 h-4"})]})}),(0,a.jsx)("button",{onClick:T,className:"flex justify-center items-center w-10 h-10 rounded-full transition-all duration-200 hover:bg-white/20",style:{background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.3)",color:"#fff"},children:(0,a.jsx)(m,{className:"w-5 h-5"})})]}),(0,a.jsxs)("div",{style:{position:"fixed",zIndex:1e3,width:P,...function(e,t,n){let a,i,r=window.innerWidth,s=window.innerHeight,l=document.getElementById("home-input"),o=l?l.getBoundingClientRect().width:400;if(1===t||2===t)a=e.top-8,i=e.left+e.width+40,r<1200&&(i=e.left+e.width+20);else if(3===t)a=e.top+e.height-200+28,i=e.left+e.width+28,r<1200&&(i=e.left+e.width+15);else{let t=document.getElementById("home-input");if(t){let e=t.getBoundingClientRect();a=e.top-16-210,i=e.left+e.width/2-o/2}else a=e.top-16,i=e.left+e.width/2-o/2}if(i<20&&(i=20),i+o>r-20&&(i=1===t||2===t?e.left-o-20:3===t?e.left-o-20:r-o-20)<20&&(1===t||2===t?(i=e.left+e.width/2-o/2,a=e.top-200-20):3===t&&(i=e.left+e.width/2-o/2,a=e.top-200-20)),a<20)if(1===t||2===t)a=20;else if(3===t);else{let t=document.getElementById("home-input");a=t?t.getBoundingClientRect().bottom+16:Math.max(20,e.top-16)}return a+300>s-20&&3!==t&&(a=s-300-20),{top:a,left:i}}(j,w,b.length)},children:[(0,a.jsxs)("div",{style:{width:P,display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"8px 0px 8px 0px",background:"transparent"},children:[(0,a.jsx)("img",{src:"/gogo-profile/gogo-default.png",alt:"Mr.GoGo",style:{width:"44px",height:"44px",borderRadius:"50%",objectFit:"cover"}}),(0,a.jsx)("span",{style:{fontFamily:"PingFang SC",fontWeight:"500",fontSize:"16px",lineHeight:"150%",letterSpacing:"0%",color:"#fff"},children:"Mr.GoGo"})]}),(0,a.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 16px",background:"rgba(248, 249, 255, 0.9)",borderRadius:"20px",border:"1px solid rgba(232, 234, 255, 0.8)",backdropFilter:"blur(10px)"},children:(0,a.jsxs)("span",{style:{fontFamily:"PingFang SC",fontSize:"14px",fontWeight:"500",color:"#7C86FF"},children:[(0,d.t)(c.g["新手引导"])," ",w+1,"/",b.length]})})]}),(0,a.jsx)("div",{style:{width:P,background:"#fff",borderRadius:16,boxShadow:"0 8px 32px 0 rgba(0, 0, 0, 0.12)",border:"1px solid rgba(124, 134, 255, 0.2)"},children:(0,a.jsxs)("div",{style:{padding:"16px"},children:[(null===(r=b[w])||void 0===r?void 0:r.title)&&(0,a.jsx)("div",{style:{fontFamily:"PingFang SC",fontSize:"16px",fontWeight:"500",lineHeight:"150%",color:"#1E2939"},children:b[w].title}),(0,a.jsx)("div",{style:{fontFamily:"PingFang SC",fontSize:"14px",lineHeight:"150%",color:"#1E2939"},children:null===(s=b[w])||void 0===s?void 0:s.content})]})})]})]})]})}var y=n(8080),b=n(43079),v=n(21835),w=n.n(v),_=n(30191);function j(e){let{children:t,bg:n="",minHeight:i=!1,overflowVisible:r=!1,snapAlign:s="start"}=e;return(0,a.jsx)("section",{className:(0,_.cn)("scroll-snap-section flex flex-col justify-center items-center p-6 w-full",i?"min-h-screen":"h-screen",r?"overflow-visible":"",n,w().fullScreenSection,"start"===s?w().snapStart:"center"===s?w().snapCe
1nter:w().snapEnd),children:t})}var k=n(45787),N=n(41073),S=n(97941),C=n(97927),I=n(12267),E=n(54423),T=n(38833),M=n(30677),A=n(22713),F=n(26227),B=n(14134),z=n(40251),P=n(41347);let L=e=>{let{children:t,className:n="",draggable:r=!0,expandable:s=!1,width:o,height:c,expandedWidth:d,expandedHeight:u,blurIntensity:g="xl",borderRadius:p="32px",glowIntensity:h="sm",shadowIntensity:m="md",...x}=e,[f,y]=(0,i.useState)(!1),b=s?{collapsed:{width:o||"auto",height:c||"auto",transition:{duration:.4,ease:[.5,1.5,.5,1]}},expanded:{width:d||"auto",height:u||"auto",transition:{duration:.4,ease:[.5,1.5,.5,1]}}}:void 0,v=(0,_.cn)("relative ".concat(r?"cursor-grab active:cursor-grabbing":""," ").concat(s?"cursor-pointer":""),n),w={borderRadius:p,...o&&!s&&{width:o},...c&&!s&&{height:c}},j=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"absolute inset-0 ".concat({sm:"backdrop-blur-sm",md:"backdrop-blur-md",lg:"backdrop-blur-lg",xl:"backdrop-blur-xl"}[g]," z-0"),style:{borderRadius:p,filter:"url(#glass-blur)"}}),(0,a.jsx)("div",{className:"absolute inset-0 z-10",style:{borderRadius:p,boxShadow:{none:"0 4px 4px rgba(0, 0, 0, 0.05), 0 0 12px rgba(0, 0, 0, 0.05)",xs:"0 4px 4px rgba(0, 0, 0, 0.15), 0 0 12px rgba(0, 0, 0, 0.08), 0 0 16px rgba(255, 255, 255, 0.05)",sm:"0 4px 4px rgba(0, 0, 0, 0.15), 0 0 12px rgba(0, 0, 0, 0.08), 0 0 24px rgba(255, 255, 255, 0.1)",md:"0 4px 4px rgba(0, 0, 0, 0.15), 0 0 12px rgba(0, 0, 0, 0.08), 0 0 32px rgba(255, 255, 255, 0.15)",lg:"0 4px 4px rgba(0, 0, 0, 0.15), 0 0 12px rgba(0, 0, 0, 0.08), 0 0 40px rgba(255, 255, 255, 0.2)",xl:"0 4px 4px rgba(0, 0, 0, 0.15), 0 0 12px rgba(0, 0, 0, 0.08), 0 0 48px rgba(255, 255, 255, 0.25)","2xl":"0 4px 4px rgba(0, 0, 0, 0.15), 0 0 12px rgba(0, 0, 0, 0.08), 0 0 60px rgba(255, 255, 255, 0.3)"}[h]}}),(0,a.jsx)("div",{className:"absolute inset-0 z-20",style:{borderRadius:p,boxShadow:{none:"inset 0 0 0 0 rgba(255, 255, 255, 0)",xs:"inset 1px 1px 1px 0 rgba(255, 255, 255, 0.3), inset -1px -1px 1px 0 rgba(255, 255, 255, 0.3)",sm:"inset 2px 2px 2px 0 rgba(255, 255, 255, 0.35), inset -2px -2px 2px 0 rgba(255, 255, 255, 0.35)",md:"inset 3px 3px 3px 0 rgba(255, 255, 255, 0.45), inset -3px -3px 3px 0 rgba(255, 255, 255, 0.45)",lg:"inset 4px 4px 4px 0 rgba(255, 255, 255, 0.5), inset -4px -4px 4px 0 rgba(255, 255, 255, 0.5)",xl:"inset 6px 6px 6px 0 rgba(255, 255, 255, 0.55), inset -6px -6px 6px 0 rgba(255, 255, 255, 0.55)","2xl":"inset 8px 8px 8px 0 rgba(255, 255, 255, 0.6), inset -8px -8px 8px 0 rgba(255, 255, 255, 0.6)"}[m]}}),(0,a.jsx)("div",{className:(0,_.cn)("relative z-30"),children:t})]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("svg",{className:"hidden",children:(0,a.jsx)("defs",{children:(0,a.jsxs)("filter",{id:"glass-blur",x:"0",y:"0",width:"100%",height:"100%",filterUnits:"objectBoundingBox",children:[(0,a.jsx)("feTurbulence",{type:"fractalNoise",baseFrequency:"0.003 0.007",numOctaves:"1",result:"turbulence"}),(0,a.jsx)("feDisplacementMap",{in:"SourceGraphic",in2:"turbulence",scale:"200",xChannelSelector:"R",yChannelSelector:"G"})]})})}),r||s?(0,a.jsx)(l.P.div,{className:v,style:w,variants:s?b:void 0,animate:s?f?"expanded":"collapsed":void 0,onClick:s?e=>{s&&(e.target.closest("a, button, input, select, textarea")||y(!f))}:void 0,drag:r,dragConstraints:r?{left:0,right:0,top:0,bottom:0}:void 0,dragElastic:r?.3:void 0,dragTransition:r?{bounceStiffness:300,bounceDamping:10,power:.3}:void 0,whileDrag:r?{scale:1.02}:void 0,whileHover:{scale:1.01},whileTap:{scale:.98},...x,children:j}):(0,a.jsx)("div",{className:v,style:w,...x,children:j})]})},R="goagent:floating-gogo-position:v2",K=[{titleKey:c.g["今天想搞定什么?"],messageKey:c.g["一句话,交给我安排。"]},{titleKey:c.g["想好了吗?"],messageKey:c.g["输入框告诉我,我来搞定。"]},{titleKey:c.g["有什么想处理的?"],messageKey:c.g["随时告诉我哦。"]},{titleKey:c.g["需要我帮什么忙?"],messageKey:c.g["直接说吧。"]},{titleKey:c.g["别小瞧我!"],messageKey:c.g["不信就给我安排个任务试试看。"]},{titleKey:c.g["别客气"],messageKey:c.g["有什么事尽管扔过来。"]},{titleKey:c.g["还在思考?"],messageKey:c.g["没关系,慢工出细活,我随时就绪。"]}],W={idle:{gif:"/gogo-profile/gogo.gif",titleKey:c.g["今天想搞定什么?"],messageKey:c.g["一句话,交给我安排。"],toneKey:c.g["随时可以开始"],showBubble:!0},focused:{gif:"/gogo-profile/gogo-input.gif",titleKey:c.g["我就位了"],messageKey:c.g["正在进入认真模式,虽然看起来还是很轻松。"],toneKey:c.g["正在接收输入"],showBubble:!0},hovered:{gif:"/gogo-profile/gogo-hover.gif",titleKey:c.g["看我干嘛"],messageKey:c.g["看输入框呀,给我一些任务。"],toneKey:c.g["可拖动固定"],showBubble:!0},clicked:{gif:"/gogo-profile/gogo-tag-error.gif",titleKey:c.g["收到你的召唤"],messageKey:c.g["继续在输入框里描述任务,我会带着上下文进入团队会话。"],toneKey:c.g["GoGo 已就位"],showBubble:!0},dragging:{gif:"/gogo-profile/gogo-dag.gif",titleKey:c.g["快把我放下来"],messageKey:c.g["去问我问题吧!"],toneKey:c.g["拖动中"],showBubble:!0}},G=e=>({x:Math.min(Math.max(16,e.x),window.innerWidth-100-16),y:Math.min(Math.max(16,e.y),window.innerHeight-100-16)}),H=()=>{let e=document.getElementById("home-hero-title");if(e){let t=e.getBoundingClientRect();return G({x:Math.round(t.right-100+28),y:Math.round(t.top-118)})}let t=document.getElementById("home-input");if(t){let e=t.getBoundingClientRect();return G({x:Math.round(e.right-100+18),y:Math.round(e.top-78)})}return G({x:Math.round(window.innerWidth/2+330),y:Math.round(window.innerHeight/2-110)})},O=()=>{try{let e=window.localStorage.getItem(R);if(!e)return null;let t=JSON.parse(e);if("number"!=typeof(null==t?void 0:t.x)||"number"!=typeof(null==t?void 0:t.y)||!Number.isFinite(t.x)||!Number.isFinite(t.y))return null;return G(t)}catch(e){return null}};function D(e){let{inputFocused:t}=e,{t:n}=(0,y.o)(),[r,o]=(0,i.useState)(null),[c,d]=(0,i.useState)(!1),[u,g]=(0,i.useState)(!1),[p,h]=(0,i.useState)(!1),[m,x]=(0,i.useState)(0),f=(0,i.useRef)(null),b=(0,i.useRef)(null),v=(0,i.useRef)(!1);(0,i.useEffect)(()=>{let e=()=>{o(O()||H())};e();let t=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(t)},[]),(0,i.useEffect)(()=>{let e=()=>{o(e=>{if(!e)return H();let t=G(e);return window.localStorage.setItem(R,JSON.stringify(t)),t})};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,i.useEffect)(()=>()=>{b.current&&clearTimeout(b.current)},[]),(0,i.useEffect)(()=>{let e=window.setInterval(()=>{x(e=>(e+1)%K.length)},8e3);return()=>window.clearInterval(e)},[]);let w=(0,i.useCallback)(e=>{window.localStorage.setItem(R,JSON.stringify(e))},[]),j=(0,i.useCallback)(e=>{r&&(e.currentTarget.setPointerCapture(e.pointerId),f.current={pointerId:e.pointerId,startX:e.clientX,startY:e.clientY,originX:r.x,originY:r.y,moved:!1},d(!0))},[r]),k=(0,i.useCallback)(e=>{let t=f.current;if(!t||t.pointerId!==e.pointerId)return;let n=e.clientX-t.startX,a=e.clientY-t.startY;(Math.abs(n)>3||Math.abs(a)>3)&&(t.moved=!0),o(G({x:t.originX+n,y:t.originY+a}))},[]),N=(0,i.useCallback)(e=>{let t=f.current;t&&t.pointerId===e.pointerId&&(e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId),d(!1),t.moved&&(v.current=!0,window.setTimeout(()=>{v.current=!1},0)),f.current=null,o(e=>{if(!e)return e;let t=G(e);return w(t),t}))},[w]),S=(0,i.useCallback)(()=>{v.current||(g(!0),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{g(!1)},1800))},[]),C=c?"dragging":u?"clicked":p?"hovered":t?"focused":"idle",I=W[C],E=(0,i.useMemo)(()=>"idle"===C?{...I,...K[m]}:I,[m,C,I]),T=(0,i.useMemo)(()=>({title:n(E.titleKey),message:n(E.messageKey),tone:n(E.toneKey)}),[E,n]),M=(0,i.useMemo)(()=>Math.min(Math.min(328,Math.max(210,Math.max(16*T.title.length,12*T.message.length)+38)),window.innerWidth-32),[T.message,T.title,r]),A=(0,i.useMemo)(()=>
1{if(!r)return{style:{left:(100-M)/2,bottom:110},originClass:"origin-bottom-left"};let e=r.x+50,t=50-M/2,n=e-M/2,a=e+M/2,i=r.y-62-10>=16,s=n<16,l=a>window.innerWidth-16;return{style:{...s?{left:0}:l?{right:0}:{left:t},...i?{bottom:110}:{top:110}},originClass:s?i?"origin-bottom-left":"origin-top-left":l?i?"origin-bottom-right":"origin-top-right":i?"origin-bottom":"origin-top"}},[M,r]);return r?(0,a.jsxs)("div",{className:"fixed z-50",style:{left:r.x,top:r.y},children:[(0,a.jsx)(s.N,{mode:"wait",children:I.showBubble&&(0,a.jsx)(l.P.div,{initial:{opacity:0,scale:.9,y:10,filter:"blur(10px)"},animate:{opacity:1,scale:1,y:0,filter:"blur(0px)"},exit:{opacity:0,scale:.92,y:8,filter:"blur(10px)"},transition:{type:"spring",stiffness:360,damping:32,mass:.72},className:(0,_.cn)("pointer-events-none absolute",A.originClass),style:A.style,children:(0,a.jsx)(L,{draggable:!1,expandable:!1,width:"".concat(M,"px"),height:"".concat(62,"px"),borderRadius:"18px",blurIntensity:"lg",glowIntensity:"sm",shadowIntensity:"md",className:"z-10 flex items-start relative overflow-hidden border-0 bg-white/[0.08]",children:(0,a.jsxs)("div",{className:"relative overflow-hidden rounded-[18px]",style:{width:M,height:62},children:[(0,a.jsx)(l.P.div,{className:"pointer-events-none absolute -inset-[18%] bg-[radial-gradient(circle_at_22%_28%,rgba(255,255,255,0.26),transparent_30%),radial-gradient(circle_at_78%_18%,rgba(180,220,255,0.12),transparent_28%),radial-gradient(circle_at_58%_88%,rgba(255,255,255,0.12),transparent_34%)]",animate:{x:["-2%","2%","-1.5%"],y:["1%","-2%","1%"],opacity:[.38,.54,.38],scale:[1,1.025,1]},transition:{duration:7.2,repeat:1/0,ease:"easeInOut"}}),(0,a.jsx)(l.P.div,{className:"pointer-events-none absolute inset-y-[-45%] left-[-58%] w-[58%] rotate-[18deg] bg-[linear-gradient(90deg,transparent,rgba(125,211,252,0.16),rgba(255,255,255,0.42),rgba(244,114,182,0.18),transparent)] blur-[8px]",animate:{x:["0%","390%"],opacity:[.08,.46,.08]},transition:{duration:4.4,repeat:1/0,ease:"linear"}}),(0,a.jsxs)("svg",{className:"pointer-events-none absolute inset-0 h-full w-full",viewBox:"0 0 ".concat(M," ").concat(62),preserveAspectRatio:"none","aria-hidden":"true",children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"floating-gogo-orbit-line",x1:"0",y1:"0",x2:"1",y2:"1",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"rgba(96,165,250,0)"}),(0,a.jsx)("stop",{offset:"24%",stopColor:"rgba(96,165,250,0.86)"}),(0,a.jsx)("stop",{offset:"52%",stopColor:"rgba(255,255,255,0.98)"}),(0,a.jsx)("stop",{offset:"78%",stopColor:"rgba(251,113,133,0.82)"}),(0,a.jsx)("stop",{offset:"100%",stopColor:"rgba(251,113,133,0)"})]})}),(0,a.jsx)(l.P.rect,{x:"1",y:"1",width:Math.max(M-2,0),height:60,rx:"17",ry:"17",fill:"none",stroke:"url(#floating-gogo-orbit-line)",strokeWidth:"1.5",strokeLinecap:"round",pathLength:"1",strokeDasharray:"0.18 0.82",animate:{strokeDashoffset:[0,-1]},transition:{duration:3.6,repeat:1/0,ease:"linear"},opacity:"0.92"})]}),(0,a.jsx)("div",{className:"relative z-10 flex h-full w-full items-center px-[16px] py-[9px] text-white",children:(0,a.jsxs)("div",{className:"min-w-0 flex-grow",children:[(0,a.jsx)("div",{className:"truncate text-[14px] font-semibold leading-[18px] tracking-[0.01em] text-white drop-shadow-[0_1px_8px_rgba(0,0,0,0.18)]",children:T.title}),(0,a.jsx)("div",{className:"mt-[3px] line-clamp-1 text-[12px] font-medium leading-[16px] tracking-[0.01em] text-white/88",children:T.message})]})})]})})},C)}),(0,a.jsx)("button",{type:"button","aria-label":"GoGo",className:(0,_.cn)("relative flex items-center justify-center overflow-hidden rounded-full","bg-transparent p-0 transition-transform duration-200 ease-out hover:scale-105 active:scale-95",c?"cursor-grabbing":"cursor-grab"),style:{width:100,height:100,touchAction:"none"},onClick:S,onMouseEnter:()=>{h(!0)},onMouseLeave:()=>h(!1),onPointerDown:j,onPointerMove:k,onPointerUp:N,onPointerCancel:N,children:(0,a.jsx)("img",{src:I.gif,alt:"",draggable:!1,className:"h-full w-full object-cover select-none"})})]}):null}var X=n(25012),Y=n(85434);let U="home_pending_question_after_login";function J(){let{t:e}
1=(0,y.o)(),t=(0,k.useRouter)(),{getParams:n,removeParams:r}=(0,M.P)(),{connectToEndpoint:s,isEndpointConnected:l,getConnectionStatus:o}=(0,F.h)(),{setSteps:d,startTour:u}=function(){let e=(0,i.useContext)(x);if(!e)throw Error("useTour must be used within a TourProvider");return e}(),[g,p]=(0,i.useState)(!1),[h,m]=(0,i.useState)(!1),{setChatMessage:f,setSelectedTeam:b,attachedFiles:v,attachmentRefs:j,selectedKnowledgeFiles:L,agentState:R,updateAgentState:K,chatMessage:W,setLastEnhancedOriginal:G,setLastEnhancedPrompt:H,setLastEnhancedResult:O}=(0,I.Y_)([I.pB.setChatMessage,I.pB.setSelectedTeam,I.pB.attachedFiles,I.pB.attachmentRefs,I.pB.selectedKnowledgeFiles,I.pB.agentState,I.pB.updateAgentState,I.pB.chatMessage,I.pB.setLastEnhancedOriginal,I.pB.setLastEnhancedPrompt,I.pB.setLastEnhancedResult]),{initRoles:J}=(0,N.zn)([N.oy.initRoles]);(0,i.useEffect)(()=>{J()},[J]),(0,i.useEffect)(()=>{b(null),z.Z9.getState().clearComponentTeam(),(0,P.lt)()},[b]),(0,i.useEffect)(()=>{S.S.get()&&(l(B.Q.TEAM_ENDPOINT)||s(B.Q.TEAM_ENDPOINT))},[s,l]),(0,i.useEffect)(()=>{d([{selectorId:"home-input",content:(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:(0,_.cn)("mb-2",w().tourTitle),children:e(c.g.MrGoGo数字员工推荐官)}),(0,a.jsxs)("p",{className:w().tourText,children:[e(c.g.我不仅仅是一个AI助手更是一个能够为您一键)," ",(0,a.jsx)("span",{className:w().tourStrong,children:e(c.g.召唤管理和调度AI数字员工)})," ",e(c.g.的),' "',(0,a.jsx)("span",{className:w().tourStrong,children:e(c.g.超级大脑)}),'" ',e(c.g.和),' "',(0,a.jsx)("span",{className:w().tourStrong,children:e(c.g.超级HR)}),'" ',e(c.g.请对我发布指令吧)]})]}),position:"top"},{selectorId:"sidebar-roles",content:(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:(0,_.cn)("mb-2",w().tourTitle),children:e(c.g.超级市场)}),(0,a.jsxs)("p",{className:w().tourText,children:[e(c.g.海量智能人才库每位数字员工都身怀绝技您可以像挑选商品一样选择AI数字员工即时上岗按需服务成本可控为您打造一支),(0,a.jsx)("span",{className:w().tourStrong,children:e(c.g.永不疲倦的智能团队)})]})]}),position:"right"},{selectorId:"sidebar-knowledge",content:(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:(0,_.cn)("mb-2",w().tourTitle),children:e(c.g.向量知识库)}),(0,a.jsxs)("p",{className:w().tourText,children:[e(c.g.告别杂乱的网盘这不是简单的文件存储而是你的)," ",(0,a.jsx)("span",{className:w().tourStrong,children:e(c.g.数据治理工具)}),e(c.g.每次上传AI都已为你)," ",(0,a.jsx)("span",{className:w().tourStrong,children:e(c.g.深度理解精准检索)}),e(c.g.让你的知识资产活起来)]})]}),position:"right"},{selectorId:"user-center-trigger",content:(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:(0,_.cn)("mb-2",w().tourTitle),children:e(c.g.用户中心)}),(0,a.jsxs)("p",{className:w().tourText,children:[e(c.g.一切尽在您的掌控在这里您可以轻松管理您的),(0,a.jsx)("span",{className:w().tourStrong,children:e(c.g.使用权限与个性化设置)}),e(c.g.打造最适合您的专属智能工作环境)]})]}),position:"bottom"}])},[d,e]);let{userInfo:Q}=(0,C.As)([C.P4.userInfo]),{clearComponentTeam:q}=(0,z.Wv)([z.r8.clearComponentTeam]);(0,i.useEffect)(()=>{},[Q,g,u]),(0,i.useEffect)(()=>{{let e=sessionStorage.getItem(U);(null==e?void 0:e.trim())&&f(e.trim()),sessionStorage.removeItem(U)}let{prefill:e}=n();if(!e)return;let t=e.trim();if(!t){r(["prefill"]);return}f(t),r(["prefill"])},[n,r,f]);let V=(0,i.useCallback)(async()=>{let e=W.trim();if(!e)return;G(W);let t="";try{await (0,X.TS)({text:e,files:v,agent_type:N.JK.MR_GOGO_ASSISTANT,session_id:null},{onChunk:e=>{t+=e,f(t),O(t)},onComplete:e=>{let n=e||t;f(n),O(n),H(n)},onError:e=>{f(W)}})}catch(e){f(W)}},[v,W,f,G,H,O]),Z=(0,i.useCallback)(async()=>{l(B.Q.TEAM_ENDPOINT)||s(B.Q.TEAM_ENDPOINT),await new Promise(e=>{let t=Date.now(),n=window.setInterval(()=>{let a=o(B.Q.TEAM_ENDPOINT);if(a.connectionId){a.connectionId!==R.connectionId&&K({connectionId:a.connectionId}),window.clearInterval(n),e();return}Date.now()-t>5e3&&(window.clearInterval(n),e())},100)})},[R.connectionId,s,o,l,K]);return(0,a.jsxs)("div",{className:"overflow-y-auto w-full h-screen",children:[(0,a.jsx)(D,{inputFocused:h}),(0,a.jsx)("div",{className:"flex justify-center items-center w-full h-full",children:(0,a.jsxs)("div",{className:"w-full max-w-full sm:max-w-[750px] min-h-[114px] sm:min-w-[390px] mx-auto animate-home-chat-hidden",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center w-full",children:[(0,a.jsx)("div",{id:"home-hero-title",className:"text-[64px] font-semibold text-center whitespace-nowrap",style:{lineHeight:"0.65em",paddingTop:"0.25em",paddingBottom:"0.25em",background:"linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(150, 142, 255, 1) 100%)",WebkitBackgroun
1dClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:e(c.g["全球领先的跨生态「AI数字员工」社区"])}),(0,a.jsx)(E.A,{duration:3,repeatDelay:1.2,className:(0,_.cn)("text-[24px] font-semibold text-center whitespace-nowrap mt-[30px] mb-[30px] leading-[1.3333333333333333em]","text-[#8a8a8a] [--shimmer-contrast:rgba(255,255,255,0.95)] dark:text-[#b0b0b0] dark:[--shimmer-contrast:rgba(255,255,255,0.45)]"),children:e(c.g["咨询您的超级大脑GoGo,即刻寻找工作搭子,开启一人公司时代"])})]}),(0,a.jsx)("div",{id:"home-input",className:(0,_.cn)("relative z-10",w().homeInputBox),onFocusCapture:()=>m(!0),onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||m(!1)},children:(0,a.jsx)(T.A,{className:"w-full",variant:"home",isLoading:!1,isGenerating:!1,handleSubmit:e=>{let n=e.trim(),a=v.length>0||L.length>0;if(n||a){if(!S.S.get()){sessionStorage.setItem(U,n);let e=encodeURIComponent("/home");t.push("/login?callbackUrl=".concat(e));return}b(null),q(),(0,P.lt)(),(0,Y.jG)("home"),(0,A.vp)({content:n,attachedFiles:v,attachmentRefs:j,selectedKnowledgeFiles:L}),t.push("/team?team_code=dynamic_team")}},bypassSubmitAuthCheck:!0,handleEnhancePrompt:V,initSocket:Z})})]})})]})}var Q=n(70231);let q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{initialLimit:t=100,loadMoreLimit:n=50}=e,[a,r]=(0,i.useState)([]),[s,l]=(0,i.useState)(!0),[o,c]=(0,i.useState)(null),[d,u]=(0,i.useState)(0),[g,p]=(0,i.useState)(0),h=(0,i.useCallback)(async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{l(!0),c(null);let n=await (0,Q.uW)(e);t?r(e=>[...e,...n.stories]):r(n.stories),u(n.total),p(e.skip||0)}catch(e){c(e instanceof Error?e.message:"获取故事列表失败")}finally{l(!1)}},[]),m=(0,i.useCallback)(()=>
1h({skip:0,limit:t}),[h,t]),x=(0,i.useCallback)(async()=>{if(!s&&!(a.length>=d))return h({skip:a.length,limit:n},!0)},[h,s,a.length,d,n]),f=(0,i.useCallback)(()=>(r([]),p(0),m()),[m]);(0,i.useEffect)(()=>{m()},[m]);let y=a.length<d;return{stories:a,loading:s,error:o,total:d,hasMore:y,loadMore:x,refresh:f}};function V(){return(0,a.jsxs)("div",{className:(0,_.cn)(w().card,"animate-pulse"),children:[(0,a.jsxs)("div",{className:w().cardImageContainer,children:[(0,a.jsx)("div",{className:w().skeletonImage}),(0,a.jsx)("div",{className:w().cardImageGradient})]}),(0,a.jsxs)("div",{className:w().cardFooter,children:[(0,a.jsxs)("div",{className:w().cardUserInfo,children:[(0,a.jsx)("div",{className:w().cardAvatar}),(0,a.jsxs)("div",{className:w().cardTextContainer,children:[(0,a.jsx)("div",{className:"w-32 h-4 bg-gray-200 rounded"}),(0,a.jsx)("div",{className:"w-24 h-3 bg-gray-200 rounded"})]})]}),(0,a.jsx)("div",{className:w().cardLikeButton,children:(0,a.jsx)("div",{className:"w-3 h-2.5 bg-gray-200 rounded"})})]})]})}function Z(e){let{data:t,hasMore:n=!1,onLoadMore:r,loading:o=!1}=e,{t:d,locale:u}=(0,y.o)(),{roleMap:g}=(0,N.zn)([N.oy.roleMap]),[p,h]=(0,i.useState)(12),[m,x]=(0,i.useState)(!1),[f,b]=(0,i.useState)(new Set),[v,j]=(0,i.useState)({}),k=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=new Set,n={};t.forEach(t=>{t.is_liked&&e.add(t.id),void 0!==t.like_count&&(n[t.id]=t.like_count)}),b(e),j(n)},[t]);let S=async e=>{var t,n;let a=e.id,i=f.has(a)||!!(e.is_liked&&!f.size),r=null!==(n=null!==(t=v[a])&&void 0!==t?t:e.like_count)&&void 0!==n?n:0,s=!i,l=Math.max(0,r+(s?1:-1));b(e=>{let t=new Set(e);return s?t.add(a):t.delete(a),t}),j(e=>({...e,[a]:l}));try{let e=await (0,Q.fj)(String(a));b(t=>{let n=new Set(t);return e.liked?n.add(a):n.delete(a),n}),j(t=>({...t,[a]:e.like_count}))}catch(e){b(e=>{let t=new Set(e);return i?t.add(a):t.delete(a),t}),j(e=>({...e,[a]:r}))}},C=async()=>{if(!m&&!o){x(!0);try{r&&n?await r():h(e=>Math.min(e+12,t.length))}catch(e){}finally{x(!1)}}},I=(0,i.useMemo)(()=>{let e=t.slice(0,Math.min(p,t.length)),a=[...e];return(m||o)&&(p<t.length||n)&&(a=[...a,...Array.from({length:12},(t,n)=>({id:"skeleton-".concat(e.length+n),image:"",title:"",description:"",link:"",weight:0,height:180,isPlaceholder:!0}))]),a},[t,p,m,o,n]);return(0,a.jsxs)("div",{ref:k,className:(0,_.cn)("relative w-full"),children:[(0,a.jsx)("div",{className:w().masonryGrid,children:(0,a.jsx)(s.N,{mode:"popLayout",children:I.map((e,t)=>{var n,i,r,s;let o=f.has(e.id),p="dynamic_team"===e.agent_type,h=p?"/gogo-profile/gogo-default.png":e.agent_type&&g[e.agent_type]&&g[e.agent_type].avatar?g[e.agent_type].avatar:null;return(0,a.jsx)(l.P.div,{initial:{opacity:0,scale:.8,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:-20},transition:{type:"spring",mass:.8,stiffness:100,damping:20,delay:.05*t},className:"w-full will-change-transform",style:{gridRow:"span 5",height:"auto"},children:e.isPlaceholder?(0,a.jsx)(V,{}):(0,a.jsxs)("div",{className:(0,_.cn)(w().card,"group"),children:[(0,a.jsxs)("div",{className:w().cardImageContainer,children:[e.image&&""!==e.image?(0,a.jsx)("img",{src:e.image,alt:e.title||"image",className:w().cardImage}):(0,a.jsx)("div",{className:w().cardImagePlaceholder,children:d(c.g.暂无图片)}),(0,a.jsx)("div",{className:w().cardImageGradient}),e.id&&(0,a.jsx)("button",{type:"button",disabled:!e.access_token,onClick:()=>{if(e.access_token){let t=window.location.origin,n="".concat(t,"/").concat(p?"open/team":"open/chat","?token=").concat(e.access_token,"&from=story_space&role=").concat(e.agent_type);window.open(n,"_blank")}},className:(0,_.cn)(w().cardPlayButton,!e.access_token&&"cursor-not-allowed opacity-60"),children:d(c.g.查看回放)})]}),(0,a.jsxs)("div",{className:w().cardFooter,children:[(0,a.jsxs)("div",{className:w().cardUserInfo,children:[(0,a.jsx)("div",{className:w().cardAvatar,children:h?(0,a.jsx)("img",{src:h,alt:p?"GoGo":g[e.agent_type].title,className:w().cardAvatarImage}):(null===(n=e.creator_name)||void 0===n?void 0:n[0])||(null===(i=d(c.g.SmartGuys))||void 0===i?void 0:i[0])||"A"}),(0,a.jsxs)("div",{className:w().cardTextContainer,children:[(0,a.jsx)("p",{className:(0,_.cn)(w().cardTitle,"line-clamp-1"),children:"en"===u?e.title_en||e.title:e.title_zh||e.title}),(0,a.jsx)("p",{className:(0,_.cn)(w().cardSubtitle,"line-clamp-1"),children:e.creator_name?"@".concat(e.creator_name):e.agent_type&&g[e.agent_type]?"@".concat(g[e.agent_type].title):"@".concat(d(c.g.SmartGuys))})]})]}),(0,a.jsxs)("div",{className:w().cardLikeWrapper,children:[(0,a.jsx)("span",{className:w().cardLikeCount,children:null!==(s=null!==(r=v[e.id])&&void 0!==r?r:e.like_count)&&void 0!==s?s:0}),(0,a.jsx)(l.P.button,{type:"button",className:w().cardLikeButton,"aria-label":"like story",onClick:()=>S(e),whileTap:{scale:.8},animate:{scale:o?1.15:1},transition:{type:"spring",stiffness:260,damping:18},children:(0,a.jsx)("iconpark-icon",{name:o?"like-select":"like-default",width:"20",height:"20",color:o?"#F53F3F":"#dcdcdc",className:w().cardLikeIcon})})]})]})]})},e.id)})})}),p<t.length&&(0,a.jsx)("div",{className:"flex justify-center items-center py-6",children:(0,a.jsx)("button",{onClick:C,disabled:m||o,className:(0,_.cn)(w().loadMoreBtn,"inline-flex justify-center items-center text-sm font-medium disabled:cursor-not-allowed disabled:opacity-50 whitespace-nowrap"),children:m||o?d(c.g.加载中):d(c.g.加载更多)})})]})}function $(){let{t:e}=(0,y.o)(),t=(0,i.useRef)(null),[n,r]=(0,i.useState)({}),{stories:s,loading:o,hasMore:d,loadMore:u}=q({initialLimit:100,loadMoreLimit:50}),g=(0,i.useCallback)(async e=>{let t=e.map(e=>new Promise(t=>{if(!e){t({url:e,width:250,height:180});return}let n=new Image;n.onload=()=>
1{t({url:e,width:n.naturalWidth,height:n.naturalHeight})},n.onerror=()=>{t({url:e,width:250,height:180})},n.src=e}));try{let e=await Promise.all(t),n={};e.forEach(e=>{let{url:t,width:a,height:i}=e;n[t]={width:a,height:i}}),r(n)}catch(e){}},[]);(0,i.useEffect)(()=>{if(s&&s.length>0){let e=s.map(e=>e.display_url).filter(e=>null!==e&&""!==e);e.length>0&&g(e)}},[s,g]);let p=(0,i.useCallback)(e=>{var t,a;let i=(null===(t=e.title)||void 0===t?void 0:t.trim())||e.session_title||"无标题",r=(null===(a=e.description)||void 0===a?void 0:a.trim())||e.session_title||"由 ".concat(e.creator_name||"未知用户"," 创建"),s=e.display_url||"",l=n[s],o=180;return l&&(o=Math.max(250*(l.height/l.width),180)),{id:e.id,image:s,height:o,title_en:e.title_en,title_zh:e.title_zh,title:i,description:r,link:e.display_url||"#",weight:e.weight||0,session_title:e.session_title,creator_name:e.creator_name,view_count:e.view_count,created_at:e.created_at,agent_type:e.agent_type,approved_at:e.approved_at,access_token:e.access_token,like_count:e.like_count,is_liked:e.is_liked}},[n]),h=(0,i.useMemo)(()=>s&&s.length>0?s.map(p):[],[s,p]),m=(0,i.useMemo)(()=>[...h].sort((e,t)=>t.weight-e.weight),[h]);return(0,a.jsxs)(l.P.div,{ref:t,className:"overflow-hidden mx-auto w-full  px-4 sm:px-6 lg:px-8 min-h-[114px]",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.05}}},initial:"hidden",animate:"visible",children:[(0,a.jsx)("span",{className:(0,_.cn)("block mb-4 text-center",w().galleryTitle),children:e(c.g["真实的工作,正在这里被完成"])}),(0,a.jsx)("h3",{className:(0,_.cn)("block mb-8 text-center",w().gallerySubtitle),children:e(c.g["来自用户的故事分享"])}),(0,a.jsxs)("div",{className:"mt-10 w-full",children:[o&&0===m.length?(0,a.jsx)("div",{className:w().masonryGrid,children:Array.from({length:12},(e,t)=>(0,a.jsx)("div",{className:"w-full",children:(0,a.jsxs)("div",{className:(0,_.cn)(w().card,"animate-pulse"),children:[(0,a.jsxs)("div",{className:(0,_.cn)("relative w-full",w().cardImage),children:[(0,a.jsx)("div",{className:w().skeletonImage}),(0,a.jsx)("div",{className:w().cardImageGradient})]}),(0,a.jsxs)("div",{className:w().cardFooter,children:[(0,a.jsxs)("div",{className:w().cardUserInfo,children:[(0,a.jsx)("div",{className:w().cardAvatar}),(0,a.jsxs)("div",{className:"flex flex-col gap-1 min-w-0",children:[(0,a.jsx)("div",{className:"w-32 h-4 bg-gray-200 rounded"}),(0,a.jsx)("div",{className:"w-24 h-4 bg-gray-200 rounded"})]})]}),(0,a.jsx)("div",{className:w().cardLikeButton})]})]})},"initial-skeleton-".concat(t)))}):(0,a.jsx)(Z,{data:m,hasMore:d,onLoadMore:u,loading:o}),d&&(0,a.jsx)("div",{className:"flex justify-center items-center py-8 w-full",children:(0,a.jsx)("button",{onClick:u,disabled:o,className:(0,_.cn)(w().loadMoreBtn,"inline-flex justify-center items-center text-sm font-medium disabled:cursor-not-allowed disabled:opacity-50"),children:e(o?c.g.加载中:c.g.加载更多)})})]})]})}function ee(){let{t:e}=(0,y.o)(),{setIsSiderCollapsed:t,isSiderPinned:n}=(0,b.PC)([b.o3.setIsSiderCollapsed,b.o3.isSiderPinned]),[r,d]=(0,i.useState)(0),[u,g]=(0,i.useState)(!1);(0,i.useEffect)(()=>{n||t(!0)},[t,n]),(0,i.useEffect)(()=>{let e=document.getElementById("main-scroll-container");if(!e)return;let t=()=>{let t=e.scrollTop,n=window.innerHeight,a=Math.round(t/n);d(a),g(a>=2||t>3*n)};return t(),e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)},[]);let p=e=>{let t=document.getElementById("main-scroll-container");if(!t)return;let n=window.innerHeight;t.scrollTo({top:e*n,behavior:"smooth"})};return(0,a.jsxs)(f,{children:[(0,a.jsxs)(j,{snapAlign:"start",children:[(0,a.jsx)(J,{}),(0,a.jsx)(s.N,{children:0===r&&(0,a.jsxs)(l.P.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.4,ease:"easeOut"},className:(0,_.cn)("flex justify-center items-center gap-[9px] cursor-pointer",w().scrollHint),onClick:()=>p(1),children:[(0,a.jsx)("iconpark-icon",{name:"descend",width:"24",height:"24",className:(0,_.cn)("w-6 h-6",w().scrollHintIcon)}),(0,a.jsx)("span",{style:{fontFamily:"PingFang SC",fontWeight:400,fontSize:"16px",lineHeight:"24px",color:"#ADADAD"},children:e(c.g.下滑查看更多)})]})})]}),(0,a.jsx)(j,{minHeight:!0,overflowVisible:!0,snapAlign:"start",children:(0,a.jsx)(l.P.div,{initial:{opacity:0,y:50}
1,animate:{opacity:1,y:0},transition:{type:"spring",stiffness:100,damping:20,mass:1},children:(0,a.jsx)($,{})},"photo-gallery")}),u&&(0,a.jsx)("button",{onClick:()=>p(0),"aria-label":e(c.g.回到顶部),className:(0,_.cn)("fixed right-6 bottom-24 inline-flex justify-center items-center z-50 cursor-pointer transition-transform duration-200 ease-out hover:scale-105 active:scale-95 hover:bg-[#F5F7FF]",w().backToTopBtn),children:(0,a.jsx)(o.avw,{className:"w-4 h-4"})}),(0,a.jsx)("div",{"aria-hidden":!0,className:(0,_.cn)("w-full",w().snapEndSpacer)})]})}function et(){return(0,a.jsx)(r.A,{children:(0,a.jsx)(ee,{})})}},54423:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(98887),i=n(62504),r=n(30191);let s={default:"",secondary:"text-secondary-foreground",destructive:"text-destructive dark:text-destructive-foreground",red:"text-red-600 dark:text-red-400",blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",yellow:"text-yellow-600 dark:text-yellow-400",purple:"text-purple-600 dark:text-purple-400",pink:"text-pink-600 dark:text-pink-400",orange:"text-orange-600 dark:text-orange-400",cyan:"text-cyan-600 dark:text-cyan-400",indigo:"text-indigo-600 dark:text-indigo-400",violet:"text-violet-600 dark:text-violet-400",rose:"text-rose-600 dar
1k:text-rose-400",amber:"text-amber-600 dark:text-amber-400",lime:"text-lime-600 dark:text-lime-400",emerald:"text-emerald-600 dark:text-emerald-400",sky:"text-sky-600 dark:text-sky-400",slate:"text-slate-600 dark:text-slate-400",fuchsia:"text-fuchsia-600 dark:text-fuchsia-400"},l=function(e){let{children:t,className:n,variant:l="default",duration:o=1.5,delay:c=1.5,repeatDelay:d=1.5}=e;return(0,a.jsx)("div",{className:"group overflow-hidden",children:(0,a.jsx)("div",{children:(0,a.jsx)(i.P.div,{className:(0,r.cn)("inline-block [--shimmer-contrast:rgba(255,255,255,0.6)] dark:[--shimmer-contrast:rgba(0,0,0,0.5)]",s[l],n),style:{WebkitTextFillColor:"transparent",background:"currentColor linear-gradient(to right, currentColor 0%, var(--shimmer-contrast) 40%, var(--shimmer-contrast) 60%, currentColor 100%)",WebkitBackgroundClip:"text",backgroundClip:"text",backgroundRepeat:"no-repeat",backgroundSize:"50% 200%"},initial:{backgroundPositionX:"250%"},animate:{backgroundPositionX:["-100%","250%"]},transition:{duration:o,delay:c,repeat:1/0,repeatDelay:d,ease:"linear"},children:(0,a.jsx)("span",{children:t})})})})}},56533:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(49711),i=function(e,t){if("function"==typeof e){e(t);return}e.current=t},r=function(e,t){var n=a.useRef();return a.useCallback(function(a){e.current=a,n.current&&i(n.current,null),n.current=t,t&&i(t,a)},[t])}},67346:(e,t,n)=>{"use strict";function a(e,t){if(null==e)return{};var n={};for(var a in e)if(({}).hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}n.d(t,{A:()=>a})},70231:(e,t,n)=>{"use strict";n.d(t,{Dm:()=>o,MZ:()=>l,Sx:()=>s,as:()=>c,fj:()=>r,uW:()=>i});var a=n(37887);let i=async e=>{let t={};return void 0!==e.skip&&void 0!==e.limit?(t.skip=e.skip,t.limit=e.limit):e.page&&e.page_size&&(t.limit=e.page_size,t.skip=(e.page-1)*e.page_size),e.search&&(t.search=e.search),await (0,a.Jt)("/share/story-space",{params:t})},r=async e=>await (0,a.bE)("/share/story-space/".concat(e,"/like")),s=async e=>{let t={};return void 0!==e.skip&&void 0!==e.limit?(t.skip=e.skip,t.limit=e.limit):e.page&&e.page_size&&(t.limit=e.page_size,t.skip=(e.page-1)*e.page_size),e.search&&(t.search=e.search),e.review_status&&(t.review_status=e.review_status),await (0,a.Jt)("/share/admin/stories",{params:t})},l=async(e,t)=>await (0,a.yJ)("/share/update?share_id=".concat(encodeURIComponent(e)),t),o=async e=>await (0,a.bE)("/share/admin/approve",e),c=async(e,t)=>{let n=new FormData;return n.append("image",t),await (0,a.Em)("/share/admin/stories/".concat(encodeURIComponent(e),"/cover"),{method:"POST",body:n,useContentType:!1})}},82618:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(49711),i=a.useLayoutEffect,r=function(e){var t=a.useRef(e);return i(function(){t.current=e}),t}}}]);

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.