PageSourceSearch

https://astron.ai/assets/BasicLayout-CfXAwUTk.js

js astron.ai collected 2026-10-01 16:39:50 UTC 116,745 bytes, 1 lines download raw bytes

1import{r as n,j as e}from"./index-CJQpyVoF.js";import{B as he}from"./button-COlcySkY.js";import{X as es,w as xt}from"./index-ayMRKBUl.js";import{m as Ue}from"./index-CJrGXcrc.js";import{o as Ce,b as Qe,s as T,e as oe,u as ge,y as ie,p as ts,j as be,S as ss}from"./inviteCode-D9rgtvJs.js";import{u as as,l as ns}from"./userAuth-Bzc-YaEz.js";import{u as ft}from"./useChat-IqLBEL3U.js";import{x as ee,ab as os,B as cs,ao as is,A as ls,u as Ke,r as vt,s as wt,O as rs,P as ds,Q as lt,t as ps}from"./AppEntry-yGjZDq3c.js";import{d as ms,s as hs,i as gs}from"./traceAndOrder-Ckos_Swc.js";import{h as _s}from"./order-C7PlMRgK.js";import{l as bt}from"./avator-Bof9bOU9.js";import{a as us}from"./index-_IUeYJiy.js";import{m as Ct,g as At,r as yt,k as jt,n as xs}from"./index-Bpsi5fUJ.js";import{u as le}from"./useTranslation-CZJVCIH1.js";import{M as ce}from"./index-CSwuRCeV.js";import{D as Nt,M as rt}from"./index-Bzc9CXj1.js";import{C as fs}from"./CaretDownOutlined-Dv3U9ShB.js";import{I as Ae}from"./AntdIcon-BKgxT62r.js";import{P as vs}from"./index-VAO7k5M2.js";import{l as ws}from"./agentLogoText-DKKhhTxa.js";import{H as bs}from"./index-BzmJop0n.js";import{l as Cs}from"./agentLogoTextEn-CC1FLgV-.js";import{f as As,j as ys}from"./agentSquare-GbXD7O6h.js";import{p as js,j as St,b as Ns}from"./chat-BUHNDq8n.js";import{l as Ss,k as xe}from"./sparkutils-CzrLAKyB.js";import{S as kt}from"./index-D5wV5giV.js";import{l as Qt}from"./lodash-DQpAQgZ8.js";import{c as ks}from"./person-space-icon-BkLkzb60.js";import{c as fe,b as Xe,O as Qs}from"./useUrlParam-CZ4aw4md.js";import{E as Is,I as re}from"./index-CS8YAtyi.js";import{T as de}from"./index-34CVpSRX.js";import{F as se}from"./index-ByGsukvN.js";import{R as Ls}from"./ExclamationCircleOutlined-BmG531TA.js";import{U as Se}from"./index-IS3faKyI.js";import{R as Ts}from"./PlusOutlined-djwHV0M3.js";import{P as dt}from"./progress-BRPegRc4.js";import{R as Bs}from"./DeleteOutlined-Bwal24vT.js";import{u as Es}from"./useLogout-sUgRZBFD.js";import{a as He}from"./index-CzF7my_k.js";import{n as Rs,y as Fs,c as Ms,g as Ps}from"./enterprise-auth-api-DWIXIwYb.js";import{I as Us}from"./index-Dzy0ZfGG.js";import{e as Ds,f as Os,h as zs,l as Vs}from"./auth-BQIBcS1H.js";import{u as Hs}from"./useSpaceI18n-BZqoDJzs.js";import{u as Gs}from"./useOrderIsExpired-C3lj0fcm.js";import{S as Zs}from"./SpaceButton-Du44tacF.js";import{i as qs}from"./index-B491JDAL.js";import{a as Ys}from"./arrow-down-white-JDA--J6P.js";import"./Compact-BviLumD4.js";import"./reactNode-CvZomqk2.js";import"./compact-item-5orumCwJ.js";import"./base64-Cs2W2fcZ.js";import"./chatStore-Di0cwpKa.js";import"./fetch-IOhmRd8d.js";import"./index-CiW30IE2.js";import"./tslib.es6-BO7bUXQ_.js";import"./dayjs.min-MSV7X6E-.js";import"./index-xBPjzTPJ.js";import"./utils-DBy4YQWF.js";import"./knowledge-B6Xt4n06.js";import"./v4-CtRu48qb.js";import"./Icon-RcghnO3P.js";import"./utils-BAxb0YWC.js";import"./motion-BwoXtl0z.js";import"./ActionButton-DJ1XBOXE.js";import"./index-Cbb5YXZ-.js";import"./fade-DU7Y_kU8.js";import"./zoom-DpNIHBsI.js";import"./ContextIsolator-hwtSycux.js";import"./context-DKhv_b6t.js";import"./Skeleton-CRGI6EI_.js";import"./useLocale-Dmo9Agcu.js";import"./PurePanel-CKKM5xpM.js";import"./RightOutlined-DlN6rwzX.js";import"./EllipsisOutlined-DtZ6Tilt.js";import"./index-DnoH8i83.js";import"./index-Cb4CfQq0.js";import"./Overflow-Dh_HYkSz.js";import"./collapse-BbEVqHco.js";import"./index-BQyCNz27.js";import"./SearchOutlined-D1PhykWn.js";import"./CheckOutlined-DczzTUs8.js";import"./DownOutlined-Bedvisqk.js";import"./index-ad3S-Ulj.js";import"./folderCreateAgent-Jv5uS4Ny.js";import"./index-Ykp696o3.js";import"./flow-CtnwUseI.js";import"./modal-close-QVlieQPY.js";import"./icon_zhishi_upload_act-D7BMkVq5.js";import"./workflow-template-hot-DC83vsj9.js";import"./globalStore-DBkxQF3u.js";import"./common-BC0booSG.js";import"./plugin-C0dpnJ-K.js";import"./uuid-Q0OBPXtL.js";import"./index-CP7t51lm.js";import"./icon_nav_dropdown-B-gtXUyP.js";import"./iconModal-BXgPOuGI.js";import"./useTranslation-Bz6LaZTW.js";import"./compressor.esm-C46f8uP2.js";import"./index.module-Bi0Dxxte.js";import"./ai_chat_placeholder-ChZYJ5lQ.js";import"./flowId-copy-icon-oUh8DYIQ.js";import"./index-DMzkuvYL.js";import"./index-CY7Gl-0U.js";import"./vcn-GDTDQbYd.js";import"./pcm-C_Z7Lwvr.js";import"./index-B0_gkfMG.js";import"./PulseLoader-BEbjbXk8.js";import"./useImageCropUpload-C40w0BUQ.js";import"./index-bS47I6pO.js";import"./index-DlDbTapt.js";
1import"./utils-COfvzxEc.js";import"./github_opacity_0-CxQa6oab.js";import"./back-Dxl-djPv.js";import"./row-BXqHUWkn.js";import"./responsiveObserver-DyJXlrPc.js";import"./useForceUpdate-DvJ9yelE.js";import"./PlusOutlined-ByZyTB3m.js";import"./useUserStore-CzLMwWtH.js";import"./icon_zhishi_search-VMy98n1a.js";const Ws=n.createContext(null),De={didCatch:!1,error:null};class Ks extends n.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=De}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var s,a,h=arguments.length,d=new Array(h),_=0;_<h;_++)d[_]=arguments[_];(s=(a=this.props).onReset)===null||s===void 0||s.call(a,{args:d,reason:"imperative-api"}),this.setState(De)}}componentDidCatch(t,s){var a,h;(a=(h=this.props).onError)===null||a===void 0||a.call(h,t,s)}componentDidUpdate(t,s){const{didCatch:a}=this.state,{resetKeys:h}=this.props;if(a&&s.error!==null&&Xs(t.resetKeys,h)){var d,_;(d=(_=this.props).onReset)===null||d===void 0||d.call(_,{next:h,prev:t.resetKeys,reason:"keys"}),this.setState(De)}}render(){const{children:t,fallbackRender:s,FallbackComponent:a,fallback:h}=this.props,{didCatch:d,error:_}=this.state;let x=t;if(d){const v={error:_,resetErrorBoundary:this.resetErrorBoundary};if(typeof s=="function")x=s(v);else if(a)x=n.createElement(a,v);else if(h!==void 0)x=h;else throw _}return n.createElement(Ws.Provider,{value:{didCatch:d,error:_,resetErrorBoundary:this.resetErrorBoundary}},x)}}function Xs(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return o.length!==t.length||o.some((s,a)=>!Object.is(s,t[a]))}function Js({error:o,resetErrorBoundary:t}){return e.jsx("div",{className:"fixed left-0 top-0 z-50 flex h-full w-full items-center justify-center bg-foreground bg-opacity-50",children:e.jsxs("div",{className:"flex h-1/3 min-h-fit max-w-4xl flex-col justify-evenly rounded-lg bg-background p-8 text-start shadow-lg",children:[e.jsx("h1",{className:"mb-4 text-3xl text-status-red",children:"哎呀! 出现未知错误。"}),e.jsx("p",{className:"mb-4 text-xl text-foreground",children:"请点击“重置应用程序”按钮来恢复 应用程序的状态。对于由此带来的任何不便,我们深表歉意 造成的。"}),e.jsx("div",{className:"flex justify-center",children:e.jsx(he,{type:"primary",onClick:t,className:"mr-4 rounded px-4 py-2 font-bold text-background hover:bg-ring text-[#fff]",children:"重置应用程序"})})]})})}const $s="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1845_082516'%3e%3crect%20x='0'%20y='0'%20width='24'%20height='24'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1845_082516)'%3e%3cg%3e%3cellipse%20cx='12'%20cy='12'%20rx='12'%20ry='12'%20fill='%236B23FF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M7,16.9999L17.4,16.9999L17.4,15.28564C17.4,13.62879,16.05685,12.28564,14.4,12.28564L10,12.28564C8.34315,12.28564,7,13.62879,7,15.28564L7,16.9999ZM15.00002,8.75Q15.00002,8.8851,14.98654,9.01955Q14.97306,9.154,14.94622,9.2865Q14.91939,9.41901,14.87946,9.54829Q14.83953,9.67757,14.78689,9.802389999999999Q14.73425,9.9272,14.6694,10.04635Q14.60456,10.16549,14.52814,10.27782Q14.45172,10.39016,14.36445,10.494589999999999Q14.277190000000001,10.59902,14.17992,10.69455Q14.08266,10.79008,13.97633,10.87579Q13.86999,10.961490000000001,13.75562,11.03655Q13.64125,11.111609999999999,13.51994,11.17529Q13.398620000000001,11.23898,13.27154,11.29068Q13.144449999999999,11.34238,13.01282,11.38159Q12.88119,11.42081,12.746279999999999,11.44717Q12.61137,11.47353,12.47447,11.48677Q12.337579999999999,11.50001,12.20002,11.50001Q12.062470000000001,11.50001,11.92558,11.48677Q11.78868,11.47353,11.65377,11.44717Q11.51886,11.42081,11.387229999999999,11.381599999999999Q11.255600000000001,11.34238,11.12851,11.29068Q11.00143,11.23898,10.88011,11.17529Q10.7588,11.111609999999999,10.64443,11.03655Q10.53005,10.96149
10000000001,10.42372,10.87579Q10.31739,10.79008,10.220130000000001,10.69455Q10.12286,10.59902,10.03559,10.494589999999999Q9.94833,10.39016,9.87191,10.27782Q9.795490000000001,10.16549,9.730640000000001,10.04635Q9.6658,9.9272,9.61316,9.802389999999999Q9.56052,9.67757,9.52059,9.54829Q9.48066,9.41901,9.45383,9.2865Q9.42699,9.154,9.41351,9.01955Q9.40002,8.8851,9.40002,8.75Q9.40002,8.61491,9.41351,8.48046Q9.42699,8.34601,9.45383,8.21351Q9.48066,8.081,9.52059,7.95172Q9.56052,7.82244,9.61316,7.69762Q9.6658,7.5728100000000005,9.730640000000001,7.45366Q9.795490000000001,7.33451,9.87191,7.22218Q9.94833,7.10985,10.03559,7.00542Q10.12286,6.900987,10.220130000000001,6.805458Q10.31739,6.709928,10.42372,6.624222Q10.53005,6.5385159999999996,10.64443,6.463459Q10.7588,6.388402,10.88011,6.324717Q11.00143,6.261032,11.12851,6.209332Q11.255600000000001,6.157631,11.387229999999999,6.118414Q11.51886,6.0791971,11.65377,6.0528406Q11.78868,6.026484,11.92558,6.013242Q12.062470000000001,6,12.20002,6Q12.337579999999999,6,12.47447,6.013242Q12.61137,6.026484,12.746279999999999,6.0528406Q12.88119,6.0791971,13.01282,6.118414Q13.144449999999999,6.157631,13.27154,6.209332Q13.398620000000001,6.261032,13.51994,6.324717Q13.64125,6.388402,13.75562,6.463459Q13.86999,6.5385159999999996,13.97633,6.624222Q14.08266,6.709928,14.17992,6.805458Q14.277190000000001,6.900987,14.36445,7.00542Q14.45172,7.10985,14.52814,7.22218Q14.60456,7.33451,14.6694,7.45366Q14.73425,7.5728100000000005,14.78689,7.69762Q14.83953,7.82244,14.87946,7.95172Q14.91939,8.081,14.94622,8.21351Q14.97306,8.34601,14.98654,8.48046Q15.00002,8.61491,15.00002,8.75Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",e0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAYCAYAAAC4CK7hAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAYKSURBVFiFxZhrbBzVFcd/Z+7sLrtrm6yNnSAETt3gVxI5xAQlVElbgcSjMVJJ+yGESKhqpaaqKAiBQBCEBEF8CdAi+k6/tCYfUMXDfOALICU2aVI7yYIDxg6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Wq+uupbmyguqme0VN9zE5MEk9VBIvmez0/j4STLhge2baFBipWpNDa9bygCxNAce4pnnljsOt9tOuycm0T1sgI1c2NaNdluOvYl0oHsOgR1/FyTjHlQq5uTSPP//k/iAbXcXlp32N0H36Xj0/2kKquAYFbf3EPt+24N7cy7/ilKN34CVf4tKsLBHpf66Dv9beyp5vBcNcx1my/NVgLx1nikXkA53LYXgjmG8pAmZ4dLp4fYl3rZtBw9J23mbUDC9QANG82dfEin/cPYEairFrbxMq1TdQ0N6GiETIDg9ifjwaDzc37ePOmwBFg25yliSaCNnxujwydHeTxB3+NQpi1phkeHMBEuKa2jh82r6dpwyYG0j08ed/dXH1tLfFYHIVw3xPPEovH89BkCfbpzi4Aam/ezI/v/91i4ut+6e8MHzrCcOcxrr/7jmLRrBkPQThiiJKDAPOWxnXCbOgN27boTXdzKt3NucEBrqq5mtt37GLtDZtAw54nn2Pbz36OBs598jGffniCwd6TuE4hsF6CfbrzMABrtuWOWq3h2m03A3C+6//FYjkOYs94SCIHSyhRAkqNb7T6dRdLlGWr38KyZXQc8SrhMSJmrdHSIpYIewHmpl0uT+USVJD1QukrV795s+Wq33yassCywTPDXmlpsXL9SI/7prhOm6BJVCpiFUaIxb+nfsR/vzQNmUy2wZIOY+OGu1iSR5KySws9APb4AvbIAu5CXv74vvsRx4HRDDoz4XN6JHHFLn8S2Orium0UtLpmVJDlWt1veo9kW109P+dVuTN2tpVwETE6VDKk1c0n7/JBPy1Q8uVDIF88TxZeOpSGU3SbggFjupTLh3z6Vq6DvtotyjwlXAd9AfeaYD/67V0tAAAAAElFTkSuQmCC",t0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%3e%3cg%20transform='matrix(1,-5.400848479553133e-8,5.400848479553133e-8,-1,-7.561187871374386e-7,28)'%3e%3cg%20style='opacity:0;'%3e%3cpath%20d='M0%2014C0%2014%200%2014%200%2014L14%2014C14%2014%2014%2014%2014%2014L14%2028C14%2028%2014%2028%2014%2028L0%2028C0%2028%200%2028%200%2028Z'%20fill='%23000000'%2
10fill-opacity='1'%20/%3e%3c/g%3e%3cg%3e%3cpath%20d='M2.796247171875,18.603704C3.128451171875,18.2715,3.668081171875,18.274831,3.9961611718750003,18.61111L6.999951171875,21.69L10.003751171874999,18.61111C10.331821171875,18.274831,10.871451171875,18.2715,11.203651171875,18.603704C11.532981171875,18.933029,11.532981171875,19.46697,11.203651171875,19.7963L6.999951171875,24L2.796247171875,19.7963C2.466922171875,19.46697,2.466922171875,18.933029,2.796247171875,18.603704'%20fill='%237F7F7F'%20fill-opacity='1'%20/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";function s0(){ee(ms);const[,o]=ee(hs),[,t]=ee(gs),s=Ce(h=>h.spaceType);return n.useEffect(()=>{o(s)},[s,o]),{fetchSpecialUser:async()=>{try{const h=await _s();t(!!h)}catch{}}}}const a0=()=>Qe.post("/astron-api/messageCenter/allTypes"),It=o=>Qe.post("/astron-api/messageCenter/messages",o),pt=o=>Qe.post("/astron-api/messageCenter/changeMessageStatus",o),n0=o=>Qe.post("/astron-api/messageCenter/clearUnread",o);function Ge(){return Ge=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(o[a]=s[a])}return o},Ge.apply(this,arguments)}const o0=(o,t)=>n.createElement(Ae,Ge({},o,{ref:t,icon:fs})),c0=n.forwardRef(o0);var i0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 00-26.5-5.4H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h129.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM184 456V172h81v284h-81zm627.2 160.4H496.8l9.6 198.4c.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7a44.28 44.28 0 01-42.2-32.3L329 459.2V172h415.4a56.85 56.85 0 0133.6 51.8c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0119.6 43c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0119.6 43c0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19a56.76 56.76 0 0119.6 43c0 19.1-11 37.5-28.8 48.4z"}}]},name:"dislike",theme:"outlined"};function Ze(){return Ze=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(o[a]=s[a])}return o},Ze.apply(this,arguments)}const l0=(o,t)=>n.createElement(Ae,Ze({},o,{ref:t,icon:i0})),r0=n.forwardRef(l0);function qe(){return qe=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(o[a]=s[a])}return o},qe.apply(this,arguments)}const d0=(o,t)=>n.createElement(Ae,qe({},o,{ref:t,icon:Is})),p0=n.forwardRef(d0);var m0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"};function Ye(){return Ye=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(o[a]=s[a])}return o},Ye.apply(this,arguments)}const h0=(o,t)=>n.createElement(Ae,Ye({},o,{ref:t,icon:m0})),g0=n.forwardRef(h0);var _0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}
1]},name:"play-circle",theme:"outlined"};function We(){return We=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(o[a]=s[a])}return o},We.apply(this,arguments)}const u0=(o,t)=>n.createElement(Ae,We({},o,{ref:t,icon:_0})),x0=n.forwardRef(u0),f0="_notice_modal_1f3ag_2",v0="_notice_wrap_1f3ag_15",w0="_notice_types_trigger_1f3ag_23",b0="_notice_list_wrap_1f3ag_33",C0="_read_all_1f3ag_39",A0="_notice_list_1f3ag_33",y0="_selected_1f3ag_87",j0="_del_1f3ag_90",N0="_empty_list_1f3ag_99",S0="_empty_list_icon_1f3ag_109",k0="_spaceBox_1f3ag_120",Q0="_n_unread_1f3ag_133",I0="_ni_avatar_1f3ag_143",L0="_ni_content_1f3ag_162",T0="_ni_info_1f3ag_171",B0="_notice_detail_wrap_1f3ag_204",E0="_notice_detail_1f3ag_204",R0="_nd_empty_1f3ag_224",F0="_notice_type_menu_1f3ag_410",V={notice_modal:f0,notice_wrap:v0,notice_types_trigger:w0,notice_list_wrap:b0,read_all:C0,notice_list:A0,selected:y0,del:j0,empty_list:N0,empty_list_icon:S0,spaceBox:k0,n_unread:Q0,ni_avatar:I0,ni_content:L0,ni_info:T0,notice_detail_wrap:B0,notice_detail:E0,nd_empty:R0,notice_type_menu:F0},M0="_bot_card_wrap_x55jn_1",P0="_card_info_wrap_x55jn_19",U0="_card_title_x55jn_19",D0="_card_desc_x55jn_26",ke={bot_card_wrap:M0,card_info_wrap:P0,card_title:U0,card_desc:D0},O0=({messageInfo:o})=>e.jsxs("div",{className:ke.bot_card_wrap,children:[e.jsx("img",{src:o==null?void 0:o.coverImage,alt:""}),e.jsxs("div",{className:ke.card_info_wrap,children:[e.jsx("div",{className:ke.card_title,children:o==null?void 0:o.title}),e.jsx("div",{className:ke.card_desc,children:o==null?void 0:o.summary})]})]}),z0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='15'%20height='16.5'%20viewBox='0%200%2015%2016.5'%3e%3cg%3e%3cg%3e%3cpath%20d='M2,12L13,12L13,6.5C13,3.46243,10.53757,1,7.5,1C4.4624299999999995,1,2,3.46243,2,6.5L2,12Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='0'%20y='10'%20width='15'%20height='3'%20rx='1.5'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cellipse%20cx='7.5'%20cy='1.5'%20rx='1.5'%20ry='1.5'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M4.5,13.5C4.5,15.15685,5.84315,16.5,7.5,16.5C9.15685,16.5,10.5,15.15685,10.5,13.5L4.5,13.5Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",V0=({changeNoticeModal:o})=>{var N;const[t,s]=n.useState("0"),[a,h]=ee(Ct),[d,_]=n.useState([]),[x,v]=n.useState(""),[l,y]=n.useState(0),k=p=>{s(p.key),B(p.key)},[i,j]=n.useState({}),{t:m}=le(),f=p=>{const z=["","https://openres.xfyun.cn/xfyundoc/2023-12-20/d2285839-d0c5-481c-860a-f65e1dce63ee/1703071130174/picon-bell.png","https://openres.xfyun.cn/xfyundoc/2023-12-20/9a15bf49-175c-42f0-ab53-7bce59249750/1703073213967/picon-notice.png"];return parseInt(p.messageType)<=2?z[p.messageType]:p.coverImage},B=async p=>{const g=await It({typeId:p||0,page:1,pageSize:100});h(g)},G=async()=>{const p=await a0();_(p),p.length&&(s(p[0].id),B(p[0].id))},H=async p=>{switch(await pt({messageId:p.id,operateType:1}),j(p),p.jumpType){case 2:v(""),y(0),window.location.href="/desk?botId="+p.baseId;break;case 4:v(""),y(0),window.location.href=`/desk?personalityId=${p.baseId}`;break;case 5:v(p.outLink),y(p.id);break;default:v(""),y(0);break}switch(p.messageType){case 2:y(p.id),v(p==null?void 0:p.summary);break;case 3:case 5:y(p.id);break}B(t)},r=async(p,z)=>{pt({messageId:p.id,operateType:2}).then(g=>{p.outLink==x&&v(""),T.success(m("systemMessage.deleteSuccess")),B(t)}).catch(()=>{T.error(m("systemMessage.deleteFail"))})},Q=()=>{n0({typeId:t}).then(p=>{B(t)}).catch(p=>{T.error(m("systemMessage.historyAudioLoading"))})},I=()=>{switch(i==null?void 0:i.messageType){case 3:case 5:return e.jsx(O0,{messageInfo:i});default:return null}};return n.useEffect(()=>{G()},[]),e.jsx("div",{children:e.jsx(ce,{title:!1,centered:!0,visible:!0,className:V.notice_modal,footer:!1,width:785,onCancel:()=>{o(!1)},children:e.jsxs("div",{className:V.notice_wrap,children:[e.jsxs("div",{className:V.notice_list_wrap,children:[d.length>0&&e.jsx(Nt,{overlay:e.jsx(rt,{className:V.notice_type_menu,selectedKeys:[t],onClick:k,children:d==null?void 0:d.map(p=>e.jsx(rt.Item,{children:p.typeInfo},p.id))}),trigger:["click"],placement:"bottomCenter",getPopupContainer:p=>p.parentNode,children:e.jsxs("div",{className:V.notice_types_trigger,children:[e.jsx("span",{children:(d==null?void 0:d.length)&&d.filter(p=>p.id===parseInt(t))[0].typeInfo}),e.jsx(c0,{})]})}),d.length>0&&e.jsx(he,{className:V.read_all,size:"small",onClick:Q,children:m("systemMessage.allRead")}),e.jsxs("ul",{className:V.notice_list,children:[(!(a!=null&&a.total)||(a==null?void 0:a.total)<=0)&&e.jsxs("li",{className:V.empty_list,children:[e.jsx("div",{className:V.empty_list_icon}),e.jsx("span",{children:m("systemMessage.noMoreMessage")})]}),(a==null?void 0:a.total)>0&&((N=a==null?void 0:a.messages)==null?void 0:N.map(p=>{var z,g,F,X,O;return e.jsxs("li",{className:`${l===((z=p==null?void 0:p.messageCenter)==null?void 0:z.id)?V.selected:""}`,onClick:()=>{H(p==null?void 0:p.messageCenter)},children:[((g=p.messageCenter)==null?void 0:g.messageType)!==6&&e.jsx("div",{className:`${V.ni_avatar} ${p.isRead===0&&V.n_unread}`,style:{backgroundImage:"url("+f(p.messageCenter)+")",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center"}}),((F=p.messageCenter)==null?void 0:F.messageType)==6&&e.jsx("div",{className:`${V.spaceBox} ${p.isRead===0&&V.n_unread}`,children:e.jsx("img",{className:V.spaceImg,src:z0,alt:""})}),e.jsxs("div",{className:V.ni_content,children:[e.jsxs("div",{className:V.ni_info,children:[e.jsx("h3",{className:V.ni_title,children:p.messageCenter.title}),e.jsx("span",{children:(X=p.messageCenter)==null?void 0:X.updateTime.split("T")[0]})]}),e.jsx("p",{children:p.messageCenter.summary})]}),e.jsx("span",{className:V.del,onClick:Y=>{Y.stopPropagation()},children:e.jsx(vs,{title:m("systemMessage.isConfirmDelete"),onConfirm:Y=>{r(p==null?void 0:p.messageCenter)},okText:m("systemMessage.delete"),cancelText:m("systemMessage.cancel"),children:e.jsx(us,{})})})]},(O=p==null?void 0:p.messageCenter)==null?void 0:O.id)}))]})]}),e.jsxs("div",{className:`${V.notice_detail_wrap}`,children:[![3,5].includes(i==null?void 0:i.messageType)&&e.jsx("div",{className:`${V.notice_detail} ${!x||x===""?V.nd_empty:""}`,dangerouslySetInnerHTML:{__html:x}}),I()]})]})})})},H0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAANJJREFUWEftlNENwjAMRF8HYAAYgNVYgAEYgAVYjQFgABaoTmqkCiWxHT4iJOenatPzPZ2dLExey2R/EiATyAQygb9I4AzcgCvwct6cJ+C+6Z49jZWAzB/AAXgDFweEzKU5Ap9N04SwAGSsYgLRsiD25vpfxoIWSHVZABJ5IcLmKu4B8EAMmUcAehDaKz13xb7vhTeBoqm1Q3sauLB5NIEWRPluDlxtCqMJtCCGzEcT+IbQe/eo/XIR9bRlMPVsnnOrwGgLrLru/QTIBDKBTGB6AitXAS4hvHLD6AAAAABJRU5ErkJggg==",G0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAADDSURBVEiJ7ZS/CQIxFIe/SAoLQQsLwSXcQDfQERzlNnGFcwPd4NxAwcJCq7MRhGdzcEEf6OPOIJKv+uXlzxcSEocREZkAi6pZOOdy6xpW4VJqVtb5nW9sKgl/XjgK8imGsBvkWwxhI5KwdZyIzKn/xpArcFHqU2BW5Q2wVcaUwFmp7xCRTOKRRT9SD+TA
1XunrAUOl/smR9oGBUi+sG3y+gsw6//+fRRJqjIN8jCH0Qb7HEDYiCVvHvx/ywho4VNn8Nz4AgJqm2A7dCoQAAAAASUVORK5CYII=",Z0="/assets/agentLog-YL4wdOac.svg",q0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%3e%3cg%3e%3cg%20style='opacity:0;'%3e%3crect%20x='0'%20y='0'%20width='18'%20height='18'%20rx='0'%20fill='%23000000'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M10.5999855859375,1L4.1999655859375,1C3.3159775859375,1,2.6079789359375,1.7159849999999999,2.6079789359375,2.60001L2.5999755859375,15.4C2.5999755859375,16.284,3.3079745859375,17,4.1919555859374995,17L13.7999755859375,17C14.6839755859375,17,15.3999755859375,16.284,15.3999755859375,15.4L15.3999755859375,5.8L10.5999855859375,1ZM12.1999655859375,13.3069L5.799925585937499,13.3069L5.7999655859375,12.2L12.1999755859375,12.2L12.1999655859375,13.3069ZM12.1999655859375,10.23046L5.799925585937499,10.23046L5.7999655859375,9.00001L12.1999755859375,9.00001L12.1999655859375,10.23046ZM9.799985585937499,6.60002L9.799985585937499,2.2L14.1999755859375,6.60002L9.799985585937499,6.60002Z'%20fill='%237C878E'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Y0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_447_18814'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_447_18814)'%3e%3cg%3e%3cpath%20d='M8,1.3333334C4.3181,1.3333334,1.3333334,4.3181,1.3333334,8C1.3333334,11.681901,4.3181,14.666667,8,14.666667C11.681901,14.666667,14.666667,11.681901,14.666667,8C14.666667,4.3181,11.681901,1.3333334,8,1.3333334ZM0,8C0,3.5817332,3.5817332,0,8,0C12.418267,0,16,3.5817332,16,8C16,12.418267,12.418267,16,8,16C3.5817332,16,0,12.418267,0,8Z'%20fill-rule='evenodd'%20fill='%23000000'%20fill-opacity='0.5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M6.3944344823486325,14.1572381796875C6.3299340823486325,14.0740051796875,6.3299340823486325,13.3324718796875,6.3944344823486325,11.9327058796875C5.703800882348633,11.9565725796875,5.267467482348633,11.9086389796875,5.085434182348633,11.7889394796875C4.812334282348633,11.6093721796875,4.538967482348633,11.055606879687499,4.296367482348633,10.6653394796875C4.053801062348633,10.2750725796875,3.5154343823486327,10.213372279687501,3.2980175023486327,10.126139179687499C3.080607667348633,10.0388726796875,3.026030992348633,9.6832394796875,3.897100862348633,9.9522061796875C4.768134482348633,10.2211727796875,4.8106341823486325,10.953605679687499,5.085434182348633,11.1248717796875C5.360201082348633,11.2961396796875,6.017167582348633,11.2212056796875,6.314934482348633,11.0840053796875C6.6127340823486325,10.946806479687499,6.590800482348633,10.435972679687499,6.643901082348632,10.2336053796875C6.711034282348633,10.0447058796875,6.474434582348633,10.0028056796875,6.469234182348632,10.0012726796875C6.178500882348633,10.0012726796875,4.651300982348633,9.6691393796875,4.231834182348633,8.1902389796875C3.8123343023486327,6.711372579687501,4.352700982348633,5.7447392796875,4.6409676823486326,5.3292056796875C4.8331677823486325,5.0521722796875,4.816167482348633,4.4617723196875,4.589967482348633,3.5579388286875C5.411167582348632,3.4530057386875,6.044901382348632,3.7114723596875,6.491134382348633,4.3334057896875C6.491567882348633,4.3369723596875,7.0761682823486325,3.9857723996875,8.000102082348633,3.9857723996875C8.924001182348633,3.9857723996875,9.251767682348632,4.2718389596875,9.504734482348633,4.3334057896875C9.757701382348632,4.3949721496875,9.960001982348633,3.2447389396875,11.522268282348632,3.5579388286875C11.196102182348632,4.1990055396875,10.922967882348633,5.0000722796875,11.131434882348632,5.3292056796875C11.339935282348632,5.6583389796875,12.158168782348632,6.7049386796874995,11.655534782348633,8.1902389796875C11.320467982348633,9.180472379687501,
110.661767982348632,9.7841391796875,9.679467682348633,10.0012726796875C9.566834482348632,10.0372056796875,9.510500882348634,10.0952057796875,9.510500882348634,10.1752061796875C9.510500882348634,10.2952379796875,9.662801282348632,10.3083386796875,9.882168282348633,10.8706059796875C10.028434782348633,11.2454385796875,10.039000982348632,12.3160390796875,9.913867982348632,14.0823721796875C9.596868082348632,14.1630721796875,9.350267882348632,14.2172381796875,9.174035082348633,14.2449391796875C8.861567982348632,14.2940391796875,8.522301682348633,14.3215721796875,8.188967682348633,14.3322051796875C7.855634682348633,14.3428391796875,7.739867682348633,14.3416381796875,7.279000782348633,14.2987381796875C6.971801282348633,14.2701391796875,6.676933982348633,14.2229731796875,6.3944344823486325,14.1572381796875Z'%20fill-rule='evenodd'%20fill='%23000000'%20fill-opacity='0.5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",W0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='25'%20height='12'%20viewBox='0%200%2025%2012'%3e%3cdefs%3e%3clinearGradient%20x1='0.032499998807907104'%20y1='0.5'%20x2='0.9599999785423279'%20y2='0.5'%20id='master_svg0_82_41184'%3e%3cstop%20offset='0%25'%20stop-color='%23E9EDFF'%20stop-opacity='1'/%3e%3cstop%20offset='52.0215630531311%25'%20stop-color='%23F5E4FE'%20stop-opacity='1'/%3e%3cstop%20offset='100%25'%20stop-color='%23FDECE9'%20stop-opacity='1'/%3e%3c/linearGradient%3e%3clinearGradient%20x1='0'%20y1='0.5'%20x2='1'%20y2='0.5'%20id='master_svg1_29_37270'%3e%3cstop%20offset='0%25'%20stop-color='%23D6CBFF'%20stop-opacity='1'/%3e%3cstop%20offset='97.85714149475098%25'%20stop-color='%23FFCCCD'%20stop-opacity='1'/%3e%3c/linearGradient%3e%3clinearGradient%20x1='0'%20y1='0.375'%20x2='1.0000131129687022'%20y2='0.37646486156143055'%20id='master_svg2_82_41189'%3e%3cstop%20offset='0%25'%20stop-color='%2333292B'%20stop-opacity='1'/%3e%3cstop%20offset='100%25'%20stop-color='%23B13F55'%20stop-opacity='1'/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%3e%3cg%3e%3crect%20x='0'%20y='0'%20width='25'%20height='12'%20rx='6'%20fill='%23D8D8D8'%20fill-opacity='1'/%3e%3crect%20x='0'%20y='0'%20width='25'%20height='12'%20rx='6'%20fill='url(%23master_svg0_82_41184)'%20fill-opacity='1'/%3e%3crect%20x='0.5'%20y='0.5'%20width='24'%20height='11'%20rx='5.5'%20stroke='url(%23master_svg1_29_37270)'%20fill-opacity='0'%20fill='none'%20stroke-width='1'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M5.94362539,4.6011999L5.94362539,8.999999500000001L5,8.999999500000001L5,3L6.2627928,3L8.101475,7.4707646L8.101475,3L9.038161800000001,3L9.038161800000001,8.999999500000001L7.830876099999999,8.999999500000001L5.94362539,4.6011999ZM13.4509974,3L13.4509974,4.0704652L12.167390300000001,4.0704652Q11.6678238,4.0704652,11.4388556,4.1604197Q11.209888,4.250375,11.0572424,4.5112445Q10.9531665,4.6911545,10.9150052,4.8710643000000005Q10.876843000000001,5.0509751000000005,10.8490896,5.4827588L13.4509974,5.4827588L13.4509974,6.5532229L10.8490896,6.5532229Q10.9045968,7.3268366,11.202949,7.6281862Q11.5013013,7.9295354,12.2159591,7.9295354L13.4509974,7.9295354L13.4509974,8.999999500000001L12.167390300000001,8.999999500000001Q11.6470084,8.999999500000001,11.2515178,8.919040200000001Q10.627060400000001,8.7841082,10.2593246,8.2083955Q9.7320042,7.3808093,9.7320042,5.9685156Q9.7320042,4.4032986,10.4744153,3.53073472Q10.7311368,3.23388323,11.019080599999999,3.11694162Q11.3070254,3,11.792715099999999,3L13.4509974,3ZM14.866436,3L15.907199,7.5157423L16.878579000000002,3L17.974849,3L18.946227999999998,7.5157423L19.986992,3L21,3L19.508242,8.999999500000001L18.384216000000002,8.999999500000001L17.426715,4.6731639000000005L16.469211,8.999999500000001L15.345187,8.999999500000001L13.846488,3L14.866436,3Z'%20fill='url(%23master_svg2_82_41189)'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",K0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%3e%3cg%3e%3cg%20style='opacity:0;'%3e%3crect%20x='0'%20y='0'%20width='18'%20height='18'%20rx='0'%20fill='%23000000'%2
10fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M9,17.340552734375C9.9234,17.340552734375,10.6383,16.625652734375002,10.6383,15.702252734375L7.3617,15.702252734375C7.3617,16.625652734375002,8.0766,17.340552734375,9,17.340552734375ZM14.3766,12.008652734375L14.3766,7.749092734375C14.3766,5.187382734375,12.5596,3.042702734375,10.19149,2.476752734375L10.19149,1.940572734375C10.19149,1.344832734375,9.86383,0.808662734375,9.29787,0.689513734375C8.47872,0.49589673437500004,7.80851,1.121428734375,7.80851,1.925682734375L7.80851,2.491642734375C5.44043,3.042702734375,3.6234,5.187382734375,3.6234,7.749092734375L3.6234,12.008652734375L2,13.676752734375L2,14.510752734375L16,14.510752734375L16,13.676752734375L14.3766,12.008652734375Z'%20fill='%237C878E'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",X0="/assets/collapseGray-DvNC4Rdf.svg",J0="/assets/logoText-BuPvZqr8.png",$0="_person_space_ywldd_1",ea="_person_space_header_ywldd_7",ta="_recent_list_ywldd_23",sa="_recent_list_title_ywldd_28",aa="_recent_list_item_ywldd_38",na="_icon_placeholder_ywldd_51",oa="_item_icon_ywldd_60",ca="_item_name_ywldd_66",ia="_all_list_title_ywldd_78",la="_all_list_ywldd_78",ra="_all_list_item_ywldd_104",da="_item_owner_ywldd_152",pa="_no_data_ywldd_162",ma="_person_space_footer_ywldd_175",ha="_add_space_ywldd_178",ga="_add_space_content_ywldd_198",_a="_space_manage_ywldd_218",U={person_space:$0,person_space_header:ea,recent_list:ta,recent_list_title:sa,recent_list_item:aa,icon_placeholder:na,item_icon:oa,item_name:ca,all_list_title:ia,all_list:la,all_list_item:ra,item_owner:da,no_data:pa,person_space_footer:ma,add_space:ha,add_space_content:ga,space_manage:_a},ua="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cg%3e%3cg%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M2.4000244140625,9.14990234375C2.4000244140625,12.87590234375,5.4240244140625,15.89990234375,9.1500244140625,15.89990234375C12.8760244140625,15.89990234375,15.9000244140625,12.87590234375,15.9000244140625,9.14990234375C15.9000244140625,5.42390234375,12.8760244140625,2.39990234375,9.1500244140625,2.39990234375C5.4240244140625,2.39990234375,2.4000244140625,5.42390234375,2.4000244140625,9.14990234375ZM3.9000244140625,9.14990234375C3.9000244140625,6.24965234375,6.2497744140625,3.89990234375,9.1500244140625,3.89990234375C12.0502744140625,3.89990234375,14.4000244140625,6.24965234375,14.4000244140625,9.14990234375C14.4000244140625,12.05015234375,12.0502744140625,14.39990234375,9.1500244140625,14.39990234375C6.2497744140625,14.39990234375,3.9000244140625,12.05015234375,3.9000244140625,9.14990234375Z'%20fill-rule='evenodd'%20fill='%23B2B2B2'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M16.5747353515625,17.635375L14.4537353515625,15.513625L15.5142353515625,14.453125L17.6359853515625,16.574125L16.5747353515625,17.635375L16.5747353515625,17.635375Z'%20fill-rule='evenodd'%20fill='%23B2B2B2'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGcSURBVFiF7ZSxa1NRFIe/8/JACg4dHLUIjbkBF0EKGTrEsVvBDhbzmjiIoxFc/BM6pUJHh5IiGRrnLhk7dtam7SDi4B9QqAXjz+WRvoYOuXmNlPZ+2zvvnHM/zr0cCAQCgUAgcGso1/X0YUOzPjXRtGQuUFVcStSR2L/zl6PiS90ft/S/CLo5Oma8SD/vFQpUxq2duqCrqwWsZEIHZxG9cevt6pXOcXW1EM1M6NdgwMLxZ/s5bo+pTbBc0/tROUU885GDKU3QJWpitDKhE0UsHG7ZgW+v2Cf5UUNPIvH4zPjyfct+X5ZTTtTQqJxYmkQOPCY4X1MxNr5hxMBe4ZSlrzt2ks1xa1pBdNKcc7lt25tEDjzeYAzFzMGLgxl2qWp4A6Wali/IiT/Aqzxy4PkGXaIuxvNMqNv/wWrpARWDXYy7Qzljtd+2bh45b0Gqit0cm8CbTIOeRGUoBwheH7btU145f8EUt6YN4O2lP8W7/rZt5JHKMtEe7LetCayPxiU+XKUc5NyDI/vuYyp+vXCJmumVBwKBQCAQuIH8A+MBgRlE2KW1AAAAAElFTkSuQmCC",xa="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1179_070265'%3e%3crect%20x='0'%20y='0'%20width='14'%20height='14'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1179_070265)'%3e%3cg%3e%3cpath%20d='M6.28571,
16.28571L6.28571,2L7.71429,2L7.71429,6.28571L12,6.28571L12,7.71429L7.71429,7.71429L7.71429,12L6.28571,12L6.28571,7.71429L2,7.71429L2,6.28571L6.28571,6.28571Z'%20fill='%237F7F7F'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ht="/assets/space-icon-eCL9YwF0.svg",fa="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3csvg%20t='1753777702018'%20class='icon'%20viewBox='0%200%201567%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3469'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='24.484375'%20height='16'%3e%3cpath%20d='M156.372356%20698.466517h21.060922a10.405693%2010.405693%200%200%201%2010.206063%2010.41817%2010.268447%2010.268447%200%200%201-10.206063%2010.430646h-21.060922v21.060922a10.418169%2010.418169%200%200%201-10.430646%2010.206063%2010.268447%2010.268447%200%200%201-10.41817-10.206063v-21.11083H114.462618a10.430646%2010.430646%200%200%201-10.21854-10.430646%2010.25597%2010.25597%200%200%201%2010.21854-10.418169h21.060922v-21.011015a10.430646%2010.430646%200%200%201%2010.41817-10.21854%2010.268447%2010.268447%200%200%201%2010.430646%2010.21854z%20m1376.071742-83.395262v-21.060923a10.243494%2010.243494%200%200%200-10.41817-10.218539%2010.430646%2010.430646%200%200%200-10.430646%2010.218539v21.060923h-21.048445a10.231017%2010.231017%200%200%200-10.21854%2010.418169%2010.443123%2010.443123%200%200%200%2010.21854%2010.430646h21.048445v21.048445a10.268447%2010.268447%200%200%200%2010.430646%2010.21854%2010.418169%2010.418169%200%200%200%2010.41817-10.21854v-21.048445h21.073399a10.268447%2010.268447%200%200%200%2010.21854-10.430646%2010.418169%2010.418169%200%200%200-10.21854-10.418169zM775.024466%20959.082952H250.135881a20.848816%2020.848816%200%200%201%200-41.697632h94.549566a82.821328%2082.821328%200%200%201-11.091919-41.597816V270.947266a83.345355%2083.345355%200%200%201%2083.4826-83.295448h62.459109v-20.961107a83.345355%2083.345355%200%200%201%2083.482601-83.295448h500.234331a83.307925%2083.307925%200%200%201%2083.520031%2083.295448v604.852714a82.97105%2082.97105%200%200%201-11.116873%2041.597817h115.335998a20.848816%2020.848816%200%201%201%200%2041.697631H1000.79306v20.948631a82.833804%2082.833804%200%200%201-11.116873%2041.597816h11.229164a20.848816%2020.848816%200%200%201%200%2041.697632h-109.746369a41.697631%2041.697631%200%200%201-65.366215%2050.768301z%20m76.221075-41.697632h66.301978a41.572863%2041.572863%200%200%200%2041.535433-41.809923V269.961595a40.375085%2040.375085%200%200%200-40.23784-40.612146h-503.316113a40.424993%2040.424993%200%200%200-40.23784%2040.612146v605.613802a41.784969%2041.784969%200%200%200%2041.510479%2041.809923h316.500243l-10.742567-10.742567a41.597817%2041.597817%200%200%201-10.842383-40.300224l-19.675991-19.700946a146.2162%20146.2162%200%201%201%2029.470318-29.482796l19.76333%2019.700946a41.547909%2041.547909%200%200%201%2040.300224%2010.829905z%20m149.547519-104.244078h62.746076a41.710108%2041.710108%200%200%200%2041.498002-41.710108V166.790525a41.547909%2041.547909%200%200%200-41.498002-41.685154H562.73087a41.697631%2041.697631%200%200%200-41.485524%2041.685154v20.861293H917.297982a83.307925%2083.307925%200%200%201%2083.495078%2083.295448z%20m-734.886441-766.228288h31.067355a15.633493%2015.633493%200%201%201%200%2031.266986h-31.067355v31.067355a15.633493%2015.633493%200%201%201-31.266986%200v-31.067355h-31.117262a15.633493%2015.633493%200%201%201%200-31.266986h31.067355V15.845599a15.633493%2015.633493%200%201%201%2031.266985%200zM20.848816%20938.234136a20.9112%2020.9112%200%200%201%2020.786431-20.848816h125.217663a20.848816%2020.848816%200%200%201%200%2041.697632H41.635247a20.761478%2020.761478%200%200%201-20.786431-20.848816z%20m657.529973-134.749976a104.256555%20104.256555%200%201%200-147.451408%200%20104.256555%20104.256555%200%200%200%20147.451408%200zM458.686422%20312.744712a20.848816%2020.848816%200%200%201%2020.836339-20.848816h229.312018a20.848816%2020.848816%200%201%201%200%2041.697632H479.535237a20.811385%2020.811385%200%200%201-20.848815-20.848816z%20m0%20104.244078a20.798908%2020.798908%200%200%201%2020.71157-20.873769h333.880495a20.848816%2020.848816%200%200%201%200%2041.697631h-333.880495a20.724047%2020.724047%200%200%201-20.71157-20.848815z%20m0%20104.256556a20.823862%2020.823862%200%200%201%2020.811385-20.848816h145.97914a20.848816%2020.848816%200%200%201%200%2041.697631h-145.97914a20.786431%2020.786431%200%200%201-20.811385-20.848815zM62.53397%20396.115021a62.546447%2062.546447%200%201%201%2062.558924-62.546447%2062.558924%2062.558924%200%200%201-62.558924%2062.546447z%20m0-31.192124a31.279462%2031.279462%200%201%200-31.192124-31.329369%2031.291939%2031.291939%200%200%200%2031.192124%2031.329369z%20m1292.676479-93.825909a62.558924%2062.558924%200%201%201%2062.546447-62.546447%2062.53397%2062.53397%200%200%201-62.546447%2062.546447z%20m0-31.279462a31.279462%2031.279462%200%201%200-31.266985-31.316892%2031.192124%2031.192124%200%200%200%2031.266985%2031.266985z%20m0%200'%20fill='%238A96A3'%20p-id='3470'%3e%3c/path%3e%3c/svg%3e",va={1:"owner",2:"admin",3:"member"},wa=()=>{const[o,t]=n.useState(!1),[s,a]=n.useState(""),{spaceType:h,spaceId:d,enterpriseId:_,isShowSpacePopover:x,setIsShowSpacePopover:v,setSpaceName:l,setSpaceId:y,setSpaceAvatar:k}=Ce(),i=fe(),[j,m]=n.useState([]),{t:f}
1=le(),[B,G]=n.useState([{id:"",name:f("sidebar.personalSpace"),sub:""}]),H=()=>{v(!1),t(!0)},r=()=>{v(!1);const g=h==="team"?`/enterprise/${_}/space`:"/space";i(g)},Q=async g=>{try{await ls(g.id),l(g.name),k(g.avatarUrl),v(!1),g.id===""?(i("/space/agent"),y("")):(y(g.id),i("/space/agent"))}catch(F){T.error(F.msg||"空间访问失败")}},I=g=>{const F=h==="team",X=F?{name:g}:g;F?os(X).then(O=>{G(O)}).catch(O=>{T.error(O.desc||"获取空间列表失败")}):cs(X).then(O=>{if(g)G(O);else{const Y={id:"",name:f("sidebar.personalSpace"),sub:""};G([Y,...O])}}).catch(O=>{O.code!==8e4&&T.error(O.desc||"获取空间列表失败")})},N=n.useCallback(Qt.debounce(g=>{I(g)},300),[h]),p=g=>{const F=g.target.value;F?m([]):z(),a(F),N(F)},z=()=>{is().then(g=>{m(g==null?void 0:g.slice(0,5))}).catch(g=>{g.code!==8e4&&T.error((g==null?void 0:g.desc)||(g==null?void 0:g.msg))})};return n.useEffect(()=>{x&&(a(""),I(),z())},[x]),e.jsxs("div",{className:U.person_space,children:[e.jsx("div",{className:U.person_space_header,children:e.jsx(re,{placeholder:f("spaceManagement.searchTeamSpace"),className:U.search_input,prefix:e.jsx("img",{src:ua,alt:"search"}),value:s,onChange:p})}),j.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:U.recent_list_title+" "+U.all_list_title,children:f("spaceManagement.recent")}),e.jsx("div",{className:U.recent_list+" "+U.all_list,children:j.map(g=>e.jsxs("div",{className:U.recent_list_item,onClick:()=>{Q(g)},children:[e.jsx("div",{className:U.icon_placeholder,children:g.id===d&&e.jsx("img",{src:mt,alt:"choosed",className:U.item_icon})}),e.jsx("img",{src:g.avatarUrl||ht,alt:"",className:U.item_icon}),e.jsx(de,{placement:"bottomLeft",title:g.name,arrow:!1,overlayClassName:"black-tooltip",children:e.jsx("div",{className:U.item_name,children:g.name})})]},g.id))})]}),B.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:U.all_list_title,children:f("spaceManagement.all")}),e.jsx("div",{className:U.all_list,children:B.map(g=>e.jsxs("div",{className:U.all_list_item,onClick:()=>{Q(g)},children:[e.jsx("div",{className:U.icon_placeholder,children:g.id===d&&e.jsx("img",{src:mt,alt:"choosed",className:U.item_icon})}),e.jsx("img",{src:g.id===""?ks:g.avatarUrl||ht,alt:"",className:U.item_icon}),e.jsx(de,{placement:"bottomLeft",title:g.name,arrow:!1,overlayClassName:"black-tooltip",children:e.jsx("div",{className:U.item_name,children:g.name})}),g.id!==""&&e.jsx("div",{className:U.item_owner,children:f(`spaceManagement.${va[g.userRole]}`)})]},g.id))})]}):e.jsxs("div",{className:U.no_data,children:[e.jsx("img",{src:fa,alt:"noData"}),e.jsx("div",{children:f("spaceManagement.noData")})]}),e.jsxs("div",{className:U.person_space_footer,children:[e.jsx("div",{className:U.add_space,onClick:H,children:e.jsxs("div",{className:U.add_space_content,children:[e.jsx("img",{src:xa,alt:"add"}),e.jsx("div",{children:f("spaceManagement.addSpace")})]})}),e.jsx("div",{className:U.space_manage,onClick:r,children:f("spaceManagement.spaceManage")})]}),e.jsx(kt,{open:o,mode:"create",onClose:()=>t(!1),onSuccess:()=>{oe.emit("spaceList")}})]})},ba="_sidebarContainer_10p2e_2",Ca="_collapsedItem_10p2e_13",Aa="_up_10p2e_58",ya="_login_btn_10p2e_61",ja="_sidebarMain_10p2e_71",Na="_no_scroll_10p2e_86",Sa="_recent_10p2e_90",ka="_recent_list_10p2e_97",Qa="_show_recent_list_10p2e_142",Ia="_recent_title_10p2e_151",La="_recent_item_10p2e_165",Ta="_delete_chat_10p2e_175",Ba="_recent_name_10p2e_178",Ea="_delete_mode_10p2e_197",Ra="_delete_mode_title_10p2e_206",Fa="_create_btn_10p2e_221",Ma="_create_text_10p2e_234",Pa="_bottomLogin_10p2e_243",Ua="_collapsedSidebar_10p2e_251",Da="_collapsedMain_10p2e_258",Oa="_collapsedItemTitle_10p2e_262",za="_hoverTitle_10p2e_275",Va="_toolsIcon_10p2e_287",Ha="_collapseIcon_10p2e_295",Ga="_collapseIconActive_10p2e_321",Za="_spacePopover_10p2e_325",qa="_space_name_10p2e_342",Ya="_space_name_left_10p2e_365",Wa="_space_avatar_10p2e_377",Ka="_space_name_text_10p2e_383",Xa="_control_modal_popover_10p2e_413",S={sidebarContainer:ba,collapsedItem:Ca,"rotate-arrow":"_rotate-arrow_10p2e_55",up:Aa,login_btn:ya,sidebarMain:ja,no_scroll:Na,recent:Sa,recent_list:ka,show_recent_list:Qa,recent_title:Ia,recent_item:La,delete_chat:Ta,recent_name:Ba,delete_mode:Ea,delete_mode_title:Ra,create_btn:Fa,create_text:Ma,bottomLogin:Pa,collapsedSidebar:Ua,collapsedMain:Da,collapsedItemTitle:Oa,hoverTitle:za,toolsIcon:Va,collapseIcon:Ha,collapseIconActive:Ga,spacePopover:Za,space_name:qa,space_name_left
1:Ya,space_avatar:Wa,space_name_text:Ka,control_modal_popover:Xa},Ja="_control_modal_11pxw_1",$a="_title_11pxw_4",e1="_team_icon_11pxw_12",t1="_title_text_11pxw_18",s1="_title_name_11pxw_26",a1="_right_arrow_11pxw_37",n1="_content_11pxw_42",o1="_content_item_11pxw_45",c1="_logout_11pxw_66",i1="_choose_space_popover_content_11pxw_70",l1="_choose_content_11pxw_84",r1="_choose_content_title_11pxw_88",d1="_choose_content_list_11pxw_119",p1="_choose_content_list_personal_11pxw_135",m1="_choose_content_item_11pxw_138",h1="_item_icon_11pxw_144",g1="_item_text_11pxw_150",_1="_top_11pxw_153",u1="_text_name_11pxw_158",x1="_team_permission_11pxw_166",f1="_text_sub_11pxw_175",R={control_modal:Ja,title:$a,team_icon:e1,title_text:t1,title_name:s1,right_arrow:a1,content:n1,content_item:o1,logout:c1,choose_space_popover_content:i1,choose_content:l1,choose_content_title:r1,choose_content_list:d1,choose_content_list_personal:p1,choose_content_item:m1,item_icon:h1,item_text:g1,top:_1,text_name:u1,team_permission:x1,text_sub:f1},Oe="/assets/team-avatar-SzLKMX5v.svg",ze="/assets/person-avatar-CMNaOneJ.svg",v1="/assets/switch-BEj-yYv9.svg",w1="/assets/person-center-D7Xnb6np.svg",b1="/assets/feedback-j6o-Ccvo.svg",C1="/assets/logout-0VY47npV.svg",Lt=o=>new Promise((t,s)=>{const a=new FileReader;a.readAsDataURL(o),a.onload=()=>t(a.result),a.onerror=h=>s(h)});class A1{constructor(t,s={}){this.uploadTasks=new Map,this.uploadRequests=new Map,this.activeUploads=new Set,this.completedUrls=new Map,this.config=t,this.callbacks=s}getVideoThumbnail(t){return new Promise((s,a)=>{const h=document.createElement("video"),d=document.createElement("canvas"),_=d.getContext("2d");h.onloadedmetadata=()=>{d.width=h.videoWidth,d.height=h.videoHeight,h.currentTime=1},h.onseeked=()=>{try{_==null||_.drawImage(h,0,0,d.width,d.height);const x=d.toDataURL("image/jpeg",.8);s(x)}catch(x){a(x)}},h.onerror=()=>a(new Error("视频加载失败")),h.src=URL.createObjectURL(t),h.load()})}async generatePreview(t){if(t.preview||!t.originFileObj)return;const s=t.type||t.originFileObj.type||"";try{s.startsWith("image/")?t.preview=await Lt(t.originFileObj):s.startsWith("video/")&&(t.preview=await this.getVideoThumbnail(t.originFileObj))}catch(a){console.error("生成预览图失败:",a)}}async uploadFile(t){if(!t.originFileObj)throw new Error("缺少原始文件对象");const s=t.uid,a=t.originFileObj;let h=!1;return new Promise(async(d,_)=>{var x,v;try{const l=()=>{h=!0,this.activeUploads.delete(s);const r=this.uploadRequests.get(s);if(r!=null&&r.abort)try{r.abort()}catch(Q){console.error("取消HTTP请求时出错:",Q)}this.uploadRequests.delete(s),this.updateTaskStatus(s,"cancelled"),_(new Error("Upload cancelled"))},y={promise:Promise.resolve(""),cancel:l,status:"uploading",progress:0};this.uploadTasks.set(s,y),this.activeUploads.add(s),this.updateTaskStatus(s,"uploading");const k=new es(this.config.bucketName,this.config.bucketUrl,this.config.signUrl),i=a.name,j=i.match(/(.*)\./g),m=j?j[0].slice(0,-1):i,f=i.substring(m.length+1),B=`${m}.${f}`,G={file:a,fileRename:B,uuid:Math.random().toString(36).substring(2,10)},H=k.uploadFile(G,r=>{var Q,I,N,p;h||!this.activeUploads.has(s)||(this.completedUrls.set(s,r.url),this.updateProgress(s,100),(I=(Q=this.callbacks).onProgress)==null||I.call(Q,s,100),this.activeUploads.delete(s),this.uploadRequests.delete(s),this.updateTaskStatus(s,"completed"),(p=(N=this.callbacks).onSuccess)==null||p.call(N,s,r.url),d(r.url))},r=>{var Q,I;h||!this.activeUploads.has(s)||(this.activeUploads.delete(s),this.uploadRequests.delete(s),this.updateTaskStatus(s,"failed"),(I=(Q=this.callbacks).onError)==null||I.call(Q,s,r),_(r))},(r,Q)=>{var p,z;if(h||!this.activeUploads.has(s))return;Q&&this.uploadRequests.set(s,Q);const I=r>=1?.99:r,N=Math.floor(I*100);this.updateProgress(s,N),(z=(p=this.callbacks).onProgress)==null||z.call(p,s,N)});this.uploadRequests.set(s,H)}catch(l){!h&&this.activeUploads.has(s)&&(this.activeUploads.delete(s),this.uploadRequests.delete(s),this.updateTaskStatus(s,"failed"),(v=(x=this.callbacks).onError)==null||v.call(x,s,l),_(l))}})}async uploadFiles(t){const s=t.map(a=>this.uploadFile(a));return Promise.all(s)}cancelUpload(t){const s=this.uploadTasks.get(t);s!=null&&s.cancel&&s.cancel(),this.cleanupFile(t)}cancelAllUploads(){this.activeUploads.forEach(t=>{this.cancelUpload(t)}),this.reset()}removeFile(t){this.cancelUpload(t),this.cleanupFile(t)}cleanupFile(t){this.uploadTasks.delete(t),this.uploadRequests.delete(t),this.activeUploads.delete(t),this.completedUrls.delete(t)}updateTaskStatus(t,s){var h,d;const a=this.uploadTasks.get(t);a&&(a.status=s,(d=(h=this.callbacks).onStatusChange)==null||d.call(h,t,s))}updateProgress(t,s){const a=this.uploadTasks.get(t);a&&(a.progress=s)}areAllFilesUploaded(t){return t.length===0?!0:this.activeUploads.size>0?!1:t.every(s=>this.completedUrls.has(s.uid))}getCompletedUrls(){return Array.from(this.completedUrls.values()).filter(
1Boolean)}getTaskStatus(t){var s;return(s=this.uploadTasks.get(t))==null?void 0:s.status}getProgress(t){var s;return((s=this.uploadTasks.get(t))==null?void 0:s.progress)??0}getActiveUploadCount(){return this.activeUploads.size}isUploading(){return this.activeUploads.size>0}reset(){this.uploadTasks.clear(),this.uploadRequests.clear(),this.activeUploads.clear(),this.completedUrls.clear()}updateCallbacks(t){this.callbacks={...this.callbacks,...t}}}const y1="_open_source_modal_15t82_6",j1="_modal_content_15t82_6",N1="_title_15t82_13",S1="_description_15t82_21",k1="_footerContiner_15t82_79",Q1="_cancelBtn_15t82_85",I1="_submitBtn_15t82_97",L1="_upload_section_15t82_122",T1="_upload_icon_15t82_131",B1="_upload_label_15t82_142",E1="_upload_tips_15t82_150",R1="_upload_item_15t82_158",F1="_upload_item_actions_15t82_172",M1="_upload_item_thumbnail_15t82_176",P1="_thumbnail_container_15t82_184",U1="_image_thumbnail_15t82_193",D1="_video_overlay_15t82_200",O1="_play_icon_15t82_213",z1="_upload_progress_overlay_15t82_218",V1="_file_thumbnail_15t82_231",H1="_file_name_15t82_239",G1="_file_progress_15t82_247",Z1="_action_preview_15t82_273",q1="_action_delete_15t82_282",D={open_source_modal:y1,modal_content:j1,title:N1,description:S1,footerContiner:k1,cancelBtn:Q1,submitBtn:I1,upload_section:L1,upload_icon:T1,upload_label:B1,upload_tips:E1,upload_item:R1,upload_item_actions:F1,upload_item_thumbnail:M1,thumbnail_container:P1,image_thumbnail:U1,video_overlay:D1,play_icon:O1,upload_progress_overlay:z1,file_thumbnail:V1,file_name:H1,file_progress:G1,action_preview:Z1,action_delete:q1},Y1={bucketName:"aicontest",bucketUrl:"",cdnUrl:"//aicontest.ufile.ucloud.com.cn/",signUrl:"/astron-api/oss/sign"},W1=({visible:o,onCancel:t})=>{const[s]=se.useForm(),{t:a,i18n:h}=le(),d=h.language==="en",[_,x]=n.useState([]),[v,l]=n.useState(!1),[y,k]=n.useState(""),[i,j]=n.useState(""),[m,f]=n.useState("image"),[B,G]=n.useState(!1),[H,r]=n.useState({}),[Q,I]=n.useState(!1),N=n.useRef(null);n.useEffect(()=>{const C={onProgress:(M,E)=>{r(P=>({...P,[M]:E}))},onStatusChange:(M,E)=>{if((E==="completed"||E==="failed"||E==="cancelled")&&N.current){const P=N.current.isUploading();I(P)}}};N.current=new A1(Y1,C)},[]);const p=()=>{var C;(C=N.current)==null||C.cancelAllUploads(),r({}),I(!1)},z=async C=>{N.current&&await N.current.generatePreview(C)},g=C=>{const M=C.type.startsWith("image/"),E=C.type.startsWith("video/");return!M&&!E?(T.error(a("feedback1.onlyImageAndVideo")),Se.LIST_IGNORE):M&&C.size>20*1024*1024?(T.error(a("feedback1.imageSizeLimit")),Se.LIST_IGNORE):E&&C.size>100*1024*1024?(T.error(a("feedback1.videoSizeLimit")),Se.LIST_IGNORE):!1},F=async C=>{var J;const E=(C.type||((J=C.originFileObj)==null?void 0:J.type)||"").startsWith("video/");let P=C.url;P||(E?P=URL.createObjectURL(C.originFileObj):(C.preview||(C.preview=await Lt(C.originFileObj)),P=C.preview)),k(P),f(E?"video":"image"),l(!0),j(C.name||C.url.substring(C.url.lastIndexOf("/")+1))},X=C=>{var E;(E=N.current)==null||E.removeFile(C.uid);const M=_.filter(P=>P.uid!==C.uid);x(M),s.setFieldsValue({urlList:M}),r(P=>{const J={...P};return delete J[C.uid],J}),N.current&&I(N.current.isUploading())},O=(C,M)=>{var W;const E=M.type||((W=M.originFileObj)==null?void 0:W.type)||"",P=E.startsWith("video/"),J=E.startsWith("image/"),K=H[M.uid];return e.jsxs("div",{className:D.upload_item,children:[e.jsx("div",{className:D.upload_item_thumbnail,children:(P||J)&&M.preview?e.jsxs("div",{className:D.thumbnail_container,children:[e.jsx("img",{src:M.preview,alt:M.name,className:D.image_thumbnail}),P&&e.jsx("div",{className:D.video_overlay,children:e.jsx(x0,{className:D.play_icon})}),K!==void 0&&K<100&&e.jsx("div",{className:D.upload_progress_overlay,children:e.jsx(dt,{type:"circle",percent:K,size:32,strokeColor:"#1890ff"})})]}):e.jsxs("div",{className:D.file_thumbnail,children:[e.jsx("span",{className:D.file_name,children:M.name}),K!==void 0&&K<100&&e.jsx("div",{className:D.file_progress,children:e.jsx(dt,{percent:K,size:"small"})})]})}),e.jsxs("div",{className:D.upload_item_actions,children:[e.jsx(p0,{onClick:()=>F(M),className:D.action_preview,title:a("feedback1.preview")}),e.jsx(Bs,{onClick:()=>X(M),className:D.action_delete,title:a("feedback1.delete")})]})]})},Y=ge(C=>C.user),w=async({fileList:C})=>{I(!0);const E=(C.length>4?C.slice(0,4):C).map(async W=>(W.originFileObj&&!W.preview&&await z(W),W)),P=await Promise.all(E);x(P);const J=_.map(W=>W.uid),K=P.filter(W=>{var pe;return!J.includes(W.uid)&&W.originFileObj&&!((pe=N.current)!=null&&pe.getTaskStatus(W.uid
1))});K.length>0&&N.current&&K.forEach(W=>{var pe;(pe=N.current)==null||pe.uploadFile(W).catch(Ie=>{console.error("文件上传失败:",Ie)})})},u=()=>{y&&y.startsWith("blob:")&&URL.revokeObjectURL(y),l(!1)},q=()=>{p(),x([]),G(!1),s.resetFields(),t()},te=async C=>{var M;if(C.preset_detail=C.preset_detail.trim(),Q){T.info(a("feedback1.uploadingFiles"));return}if(!B)try{G(!0);const E=(M=N==null?void 0:N.current)==null?void 0:M.getCompletedUrls(),P=_.map((J,K)=>({url:(E==null?void 0:E[K])??"",name:J.name,size:J.size}));await js({content:C.preset_detail,title:C.preset_title,id:Y.uid,email:Y.email,uid:Y.uid,attachments:P}),T.success(a("feedback1.feedbackSuccess")),q()}catch(E){T.error((E==null?void 0:E.msg)||a("feedback1.feedbackFail"))}finally{G(!1)}},_e=e.jsx("div",{children:e.jsx(Ts,{className:D.upload_icon})});return e.jsxs(e.Fragment,{children:[e.jsx(ce,{wrapClassName:D.open_source_modal,width:680,open:o,centered:!0,onCancel:q,destroyOnClose:!0,maskClosable:!1,footer:null,children:e.jsxs("div",{className:D.modal_content,children:[e.jsx("div",{className:D.title,children:a("feedback1.feedback")}),e.jsxs("div",{className:D.description,children:[e.jsx(Ls,{style:{pointerEvents:"none"}}),a("feedback1.aboutModelOutput"),e.jsx(g0,{style:{pointerEvents:"none"}})," /"," ",e.jsx(r0,{style:{pointerEvents:"none"}}),a("feedback1.aboutModelOutput2")]}),e.jsxs(se,{form:s,preserve:!1,onFinish:te,labelCol:{span:d?6:4,offset:0},children:[e.jsx(se.Item,{name:"preset_title",label:a("feedback1.title"),required:!0,initialValue:a("feedback1.feedbackTitle"),children:e.jsx(re,{disabled:!0,maxLength:20})}),e.jsx(se.Item,{name:"preset_detail",label:a("feedback1.problemDesc"),rules:[{required:!0,message:a("feedback1.problemDescNotEmpty")},{max:2e3,message:a("feedback1.problemDescLimit")},{whitespace:!0,message:a("feedback1.problemDescNotEmpty2")}],children:e.jsx(re.TextArea,{style:{height:119},autoSize:{minRows:5,maxRows:5},placeholder:a("feedback1.problemDescPlaceholder"),showCount:!0,maxLength:2e3})}),e.jsxs("div",{className:D.upload_section,children:[e.jsx("div",{className:D.upload_label,children:a("feedback1.uploadImageOrVideo")}),e.jsx("div",{className:D.upload_tips,children:a("feedback1.uploadTips")}),e.jsx(Se,{listType:"picture-card",fileList:_,onPreview:F,onChange:w,beforeUpload:g,accept:"image/*,video/*",multiple:!0,itemRender:O,children:_.length>=4?null:_e})]}),e.jsxs("div",{className:D.footerContiner,children:[e.jsx("div",{className:D.cancelBtn,onClick:q,children:a("global.cancel")}),e.jsx(he,{className:D.submitBtn,htmlType:"submit",loading:Q||B,children:a(Q?"feedback1.uploadingFiles":B?"feedback1.submitting":"global.submit")})]})]})]})}),e.jsx(ce,{open:v,title:i,footer:null,onCancel:u,centered:!0,width:m==="video"?800:520,children:m==="video"?e.jsx("video",{controls:!0,style:{width:"100%",maxHeight:"500px"},src:y,children:a("feedback1.videoNotSupported")}):e.jsx("img",{alt:"preview",style:{width:"100%"},src:y})})]})},K1=({setPersonCenterVisible:o,onClose:t})=>{var Y;const{joinedEnterpriseList:s,info:a,setEnterpriseInfo:h}=Ke(),[d,_]=n.useState(!1),[x,v]=n.useState(!1),{t:l,i18n:y}=le(),k=fe(),{spaceType:i,spaceId:j,enterpriseId:m,setSpaceType:f,setEnterpriseId:B}=Ce(),{handleTeamSwitch:G,getLastVisitSpace:H,isTeamSpace:r}=vt(k),{visitEnterprise:Q}=wt(),I={1:l("sidebar.spaceRoles.superAdmin"),2:l("sidebar.spaceRoles.admin"),3:l("sidebar.spaceRoles.member")},N=n.useMemo(()=>{const w=i==="personal";return{icon:w?ze:Oe,oppositeIcon:w?Oe:ze,oppositeSpaceType:w?"team":"personal",chooseSpaceId:w?j:m}},[i,j,m,a,l]),p=w=>{f("team"),G(w.id),t==null||t(),h({...w,avatarUrl:w==null?void 0:w.avatarUrl,name:w==null?void 0:w.name}),v(!1)},z=async()=>{h({id:"",logoUrl:"",avatarUrl:"",name:"",role:0,roleTypeText:"",officerName:"",orgId:"",serviceType:0,uid:"",createTime:"",updateTime:"",expireTime:""}),await Q(""),B(""),v(!1),f("personal"),k("/space/agent"),H(),t==null||t()},g=e.jsxs("div",{className:R.choose_content,children:[i!=="personal"&&e.jsxs("div",{className:R.choose_content_title,onClick:()=>{z()},style:{borderBottom:(s==null?void 0:s.length)>1?"1px solid rgba(226, 232, 255, 0.5)":"none"},children:[e.jsx("img",{src:N.oppositeIcon,alt:"space",className:R.team_icon}),e.jsx("div",{className:R.title_text,children:e.jsx("div",{className:R.title_name,children:l("sidebar.xingchen")})})]}
1),e.jsx("div",{className:ie(R.choose_content_list,{[R.choose_content_list_personal]:i==="personal"}),children:(Y=s==null?void 0:s.filter(w=>!r()||w.id!==Number(N.chooseSpaceId)))==null?void 0:Y.map(w=>e.jsxs("div",{className:R.choose_content_item,onClick:()=>{p(w)},children:[e.jsx("img",{src:(w==null?void 0:w.avatarUrl)||Oe,alt:w.name,className:R.item_icon}),e.jsxs("div",{className:R.item_text,children:[e.jsxs("div",{className:R.top,children:[e.jsx(de,{title:w.name,placement:"top",overlayClassName:"black-tooltip",children:e.jsx("div",{className:R.text_name,children:w.name})}),e.jsx("div",{className:R.team_permission,children:I[w.role]})]}),e.jsx("div",{className:R.text_sub,children:w.serviceType===3?l("sidebar.customEdition"):w.serviceType===1?l("sidebar.teamEdition"):l("sidebar.enterpriseEdition")})]})]},w.id))})]}),F=()=>{o(!0),t==null||t()},X=()=>{_(!0),t==null||t()},{handleLogout:O}=Es();return n.useEffect(()=>{if(m){const w=s.find(u=>Number(u.id)===Number(m));h({...w,logoUrl:w==null?void 0:w.logoUrl,name:w==null?void 0:w.name})}},[m,s]),e.jsxs("div",{className:R.control_modal,children:[e.jsx(He,{placement:"rightTop",arrow:!1,trigger:(s==null?void 0:s.length)>0?"click":[],content:g,overlayClassName:R.choose_space_popover_content,open:x,onOpenChange:w=>{v(w)},children:e.jsxs("div",{className:R.title,children:[e.jsx("img",{src:i==="personal"?ze:a.avatarUrl||N.icon,alt:"space",className:R.team_icon}),e.jsx("div",{className:R.title_text,children:e.jsx(de,{title:i==="personal"?"":a.name,placement:"top",overlayClassName:"black-tooltip",children:e.jsx("div",{className:R.title_name,children:i==="personal"?l("sidebar.xingchen"):a.name})})}),(s==null?void 0:s.length)>0&&e.jsx("img",{src:v1,alt:"switch",className:R.right_arrow})]})}),e.jsxs("div",{className:R.content,children:[e.jsxs("div",{className:R.content_item,onClick:F,children:[e.jsx("img",{src:w1,alt:""}),e.jsx("div",{children:l("sidebar.personalCenter")})]}),e.jsxs("div",{className:R.content_item,onClick:X,children:[e.jsx("img",{src:b1,alt:""}),e.jsx("div",{children:l("sidebar.feedback")})]}),e.jsxs("div",{className:ie(R.content_item,R.logout),onClick:O,children:[e.jsx("img",{src:C1,alt:""}),e.jsx("div",{children:l("sidebar.logout")})]})]}),e.jsx(W1,{visible:d,onCancel:()=>{_(!1)}})]})},X1="_collapsed_s1ea0_2",J1="_photo_s1ea0_8",$1="_button_s1ea0_17",en="_menuItem_s1ea0_20",tn="_icon_s1ea0_26",sn="_desc_s1ea0_30",an="_btnText_s1ea0_33",nn="_new_hover_title_s1ea0_36",on="_enterpriseSpaceMenu_s1ea0_54",cn="_enterpriseOtherMenu_s1ea0_107",ln="_arrow_s1ea0_152",$={collapsed:X1,photo:J1,button:$1,menuItem:en,icon:tn,desc:sn,btnText:an,new_hover_title:nn,enterpriseSpaceMenu:on,enterpriseOtherMenu:cn,arrow:ln},rn="/assets/createSpaceImg-DecYnkqV.png",dn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAuXSURBVHic7Z19rBxVFcB/587O9n229JVSTPvwiVRKFdvSYgOGUEmUYEyIQCGAEFpFMA0xQWIwkviIIfCHEP8hEiKpaaKihcgfGBJJtCTVAvIR2kilRWwrpXz0PaCv73N35vrHvu3bvq+d2Z3Zmdk9v2Rz39k3O3PuzJl7zzn3zh1QFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRlCBI0gqUsCnRIyrEluokNmlN4iaRC7d6s83TSY8U6SoaOoxPLgk94qKYw895FH0YtkWGDpzPIP3iJ61XHDTUgFZvtvncIpYXPBZbPy2tX/wYwfMMH751Du83myE17CKu2maXmGF6fYvTqGOmDQNjI8J/Dv1GxpLWJSoaYkBf+p5dJgVW4AIFaOXSK+IxzNtv7pST9Z/Z5IndgL6yzS4ZHacv7uNkCd+naIfY/+ZOmUhal3oxce589Wabn5igN85jZBFjyDmLOTdpPaIg1ugnt4zlZgwnVivNKj6dF/7ALt73K/k4aVXqITYDWr3Z5t0JFls3riNkn7zHMiDTBhRb49C5lB7rtE6oXgvWofO8u+yCpPWoh9gMyHh0x7XvZqLbsiRpHeohPh/I0O6Ww9cyKs+QvQ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xi7UvWyp68sOP6tXI0OWUiot9awy7M5Zui2qMyGy/sAjbh94vEmmFWFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVpHP8HmB+auieWmvgAAAAASUVORK5CYII=",pn="/assets/enterpriseSpaceJoin-D5k4kUye.png",mn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAACqSURBVDiNY/z///9/BioBJmoZNGoYArz/zMCw7SSVDPv0jYGhZi4DQ9syIkz7TwQ4c/P/f8PU//9bl+JXR5RhxBrIgs21+VMYGK7cxxRnZWFgWLSTgUFejIEh2gVTHqthOQGQgEcG334yMDQvZmAQ5mNgcDTAHmSMxGSnbz8YGFJ7IRYsqmRgEOHHro5gbBJrEFGGPX3DwMDGQtggBgYivUksGMJ5c8AMAwC/NMAwVXDsogAAAABJRU5ErkJggg==",hn=()=>{const{t:o}=le(),t=fe(),[s,a]=n.useState(!1),{handleTeamSwitch:h}=vt(t),{joinedEnterpriseList:d,spaceStatistics:_}=Ke(),{enterpriseId:x}=Ce(),[v]=ee(At),l=n.useMemo(()=>d.find(f=>f.id==x),[x,d]),y=n.useMemo(()=>l&&(l==null?void 0:l.role)==Number(rs),[l]);n.useMemo(()=>l&&(l==null?void 0:l.role)==Number(ds),[l]);const k=n.useMemo(()=>(_==null?void 0:_.total)>0,[_]),i=n.useMemo(()=>e.jsxs("div",{className:ie($.enterpriseSpaceMenu,v&&$.collapsed),onClick:()=>a(!0),children:[e.jsx("div",{className:$.photo,children:e.jsx("img",{src:rn,alt:"createSpaceImg"})}),e.jsx("div",{className:$.button,children:o("space.createSpaceButton")}),v&&e.jsx("div",{className:$.new_hover_title,children:o("space.createSpaceButton")})]}),[s,a,h,v]),j=n.useMemo(()=>[{key:"create",icon:dn,desc:o("space.createTeamSharedSpace"),btnText:o("space.createNewSpace"),onClick:()=>{a(!0)}},...k?[{key:"join",icon:pn,desc:o("space.joinTeamSpace"),btnText:o("space.enterSpaceManagement"),onClick:()=>{t(`/enterprise/${x}/space`)}}]:[]],[a,t,x,k,o]),m=n.useMemo(()=>e.jsx("div",{className:ie($.enterpriseOtherMenu,v&&$.collapsed),children:j.map(f=>e.jsxs("div",{className:$.menuItem,onClick:f.onClick,children:[e.jsx("img",{className:$.icon,src:f.icon,alt:""}),e.jsx("div",{className:$.desc,children:f.desc}),e.jsxs("div",{className:$.btnText,children:[f.btnText,e.jsx("img",{className:$.arrow,src:mn,alt:""})]}),v&&e.jsx("div",{className:$.new_hover_title,children:f.btnText})]},f.key))}),[j,v]);return e.jsxs(e.Fragment,{children:[y?i:m,e.jsx(kt,{open:s,onClose:()=>{a(!1)},onSuccess:()=>{h(void 0,{isJump:!0})}})]})},gn="_open_source_modal_19cix_2",_n="_modal_content_19cix_13",un="_header_19cix_19",xn="_uid_19cix_26",fn="_copy_19cix_36",vn="_header_name_19cix_39",wn="_flexTitle_19cix_54",bn="_noBotton_19cix_58",Cn="_yesBotton_19cix_62",An="_editBotton_19cix_65",yn="_flexInfo_19cix_68",jn="_flexChangpsd_19cix_72",Nn="_content_19cix_98",Sn="_contentBox_19cix_101",kn="_tabs_19cix_113",Qn="_tabActive_19cix_121",In="_tab_19cix_113",Ln="_itemBox_19cix_143",Tn="_itemHead_19cix_166",Bn="_headImg_19cix_170",En="_headTitle_19cix_176",Rn="_headDesc_19cix_188",Fn="_itemInfo_19cix_202",Mn="_actImg_19cix_207",Pn="_reduImg_19cix_212",Un="_actText_19cix_217",Dn="_reduText_19cix_226",On="_emptyBox_19cix_246",zn="_delete_mode_19cix_257",Vn="_delete_mode_title_19cix_265",b={open_source_modal:gn,modal_content:_n,header:un,uid:xn,copy:fn,header_name:vn,flexTitle:wn,noBotton:bn,yesBotton:Cn,editBotton:An,flexInfo:yn,flexChangpsd:jn,content:Nn,contentBox:Sn,tabs:kn,tabActive:Qn,tab:In,itemBox:Ln,delete:"_delete_19cix_82",itemHead:Tn,headImg:Bn,headTitle:En,headDesc:Rn,itemInfo:Fn,actImg:Mn,reduImg:Pn,actText:Un,reduText:Dn,emptyBox:On,delete_mode:zn,delete_mode_title:Vn},Hn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1296_072866'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1296_072866)'%3e%3cg%3e%3cellipse%20cx='10'%20cy='10'%20rx='8'%20ry='8'%20fill='%236B23FF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M6,12.99987L14,12.99987L14,12.571290000000001C14,10.91443,12.65685,9.571290000000001,11,9.571290000000001L9,9.571290000000001C7.34315,9.571290000000001,6,10.91443,6,12.571290000000001L6,12.99987ZM11.846160000000001,7.00001Q11.846160000000001,7.09826,11.83653,7.19604Q11.8269,7.29382,11.80773,7.3901900000000005Q11.78856,7.48656,11.76004,7.580579999999999Q11.73152,7.6746,11.69392,7.76538Q11.656320000000001,7.8561499999999995,11.61,7.94281Q11.563690000000001,8.02946,11.5091,8.11115Q11.454509999999999,8.19285,11.39218,8.2688Q11.32985,8.34475,11.26037,8.41423Q11.1909,8.483699999999999,11.11495,8.54604Q11.039,8.60837,10.9573,8.66295Q10.87561,8.71754,10.78895,8.763860000000001Q10.702300000000001,8.810179999999999,10.61153,8.84778Q10.52075,8.88538,10.42673,8.9139Q10.332709999999999,8.94242,10.23634,8.961590000000001Q10.139980000000001,8.98076,10.042200000000001,8.99039Q9.94441,9.00002,9.84616,9.00002Q9.747910000000001,9.00002,9.65013,8.99039Q9.55235,8.98076,9.45598,8.961590000000001Q9.35961,8.94242,9.26559,8.9139Q9.17157,8.88538,9.08079,8.84778Q8.99002,8.810179999999999,8.903369999999999,8.763860000000001Q8.81672,8.71754,8.73502,8.66295Q8.65333,8.60837,8.57737,8.54604Q8.50142,8.483699999999999,8.43195,8.41423Q8.36247,8.34475,8.300139999999999,8.2688Q8.23781,8.19285,8.18322,8.11115Q8.12863,8.02946,8.08232,7.94281Q8.036,7.8561499999999995,7.9984,7.76538Q7.9608,7.6746,7.93228,7.580579999999999Q7.90376,7.48656,7.88459,7.3901900000000005Q7.86542,7.29382,7.85579,7.19604Q7.84616,7.09826,7.84616,7.00001Q7.84616,6.90175,7.85579,6.80397Q7.86542,6.70619,7.88459,6.6098300000000005Q7.90376,6.51346,7.93228,6.41944Q7.9608,6.32541,7.9984,6.23464Q8.036,6.14386,8.08232,6.0572099999999995Q8.12863,5.970559,8.18322,5.888863Q8.23781,5.807168,8.300139999999999,5.731217Q8.36247,5.655265,8.43195,5.585789Q8.50142,5.516313,8.57737,5.453981Q8.65333,5.391649,8.73502,5.3370619999999995Q8.816
172,5.282475,8.903369999999999,5.236158Q8.99002,5.189842,9.08079,5.152242Q9.17157,5.114641,9.26559,5.0861197Q9.35961,5.057598,9.45598,5.0384296Q9.55235,5.0192612,9.65013,5.00963059Q9.747910000000001,5,9.84616,5Q9.94441,5,10.042200000000001,5.00963059Q10.139980000000001,5.0192612,10.23634,5.0384296Q10.332709999999999,5.057598,10.42673,5.0861197Q10.52075,5.114641,10.61153,5.152242Q10.702300000000001,5.189842,10.78895,5.236158Q10.87561,5.282475,10.9573,5.3370619999999995Q11.039,5.391649,11.11495,5.453981Q11.1909,5.516313,11.26037,5.585789Q11.32985,5.655265,11.39218,5.731217Q11.454509999999999,5.807168,11.5091,5.888863Q11.563690000000001,5.970559,11.61,6.0572099999999995Q11.656320000000001,6.14386,11.69392,6.23464Q11.73152,6.32541,11.76004,6.41944Q11.78856,6.51346,11.80773,6.6098300000000005Q11.8269,6.70619,11.83653,6.80397Q11.846160000000001,6.90175,11.846160000000001,7.00001Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Gn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='13'%20height='13'%20viewBox='0%200%2013%2013'%3e%3cg%3e%3cg%3e%3cpath%20d='M11.611846165924073,9.47409L10.136726165924072,9.47409Q10.087486165924073,9.47409,10.039186165924072,9.4837Q9.990886165924072,9.49331,9.945386165924072,9.51215Q9.899886165924073,9.531,9.858936165924073,9.55836Q9.817996165924072,9.58572,9.783176165924072,9.62054Q9.748356165924072,9.65536,9.720996165924072,9.69631Q9.693636165924072,9.73726,9.674786165924072,9.78275Q9.655936165924071,9.82825,9.646336165924073,9.87655Q9.636726165924072,9.92485,9.636726165924072,9.97409Q9.636726165924072,10.02334,9.646336165924073,10.07164Q9.655936165924071,10.11994,9.674786165924072,10.16543Q9.693636165924072,10.21093,9.720996165924072,10.25188Q9.748356165924072,10.29282,9.783176165924072,10.32765Q9.817996165924072,10.36247,9.858946165924072,10.38983Q9.899886165924073,10.41719,9.945386165924072,10.43603Q9.990886165924072,10.45488,10.039186165924072,10.46449Q10.087486165924073,10.47409,10.136726165924072,10.47409L11.611846165924073,10.47409Q12.186836165924072,10.47409,12.593426165924072,10.06749Q12.999996165924072,9.6609,12.999996165924072,9.0859L12.999996165924072,1.388196Q12.999996165924072,0.813194,12.593426165924072,0.4066013Q12.186846165924072,0,11.611846165924073,0L3.914474165924072,0Q3.3394741659240723,0,2.9328905659240725,0.4066012Q2.5263161659240723,0.813193,2.5263161659240723,1.388196L2.5263161659240723,2.84692Q2.5263161659240723,2.89617,2.535923165924072,2.94447Q2.5455311659240722,2.99277,2.564376165924072,3.03826Q2.5832221659240724,3.08376,2.610581165924072,3.12471Q2.6379411659240724,3.16565,2.6727631659240725,3.20048Q2.707585165924072,3.2353,2.748531165924072,3.26266Q2.7894771659240725,3.29002,2.834974165924072,3.30886Q2.8804711659240723,3.32771,2.928771065924072,3.33732Q2.977070465924072,3.34692,3.0263161659240723,3.34692Q3.0755618659240724,3.34692,3.1238612659240723,3.33732Q3.1721611659240723,3.32771,3.2176581659240724,3.30886Q3.263155165924072,3.29002,3.3041011659240724,3.26266Q3.3450471659240724,3.2353,3.379869165924072,3.20048Q3.414691165924072,3.16565,3.4420511659240725,3.12471Q3.469410165924072,3.08376,3.4882561659240725,3.03826Q3.5071011659240723,2.99277,3.5167091659240723,2.94447Q3.5263161659240723,2.89617,3.5263161659240723,2.84692L3.5263161659240723,1.388197Q3.5263161659240723,1,3.914474165924072,1L11.611846165924073,1Q11.999996165924072,1,11.999996165924072,1.388196L11.999996165924072,9.0859Q11.999996165924072,9.47409,11.611846165924073,9.47409Z'%20fill-rule='evenodd'%20fill='%239B9B9B'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M10.47368,11.611805847549439L10.47368,3.9141018475494382Q10.47368,3.3390988475494385,10.06711,2.9325069475494385Q9.66053,2.5259058475494385,9.08553,2.5259058475494385L1.388158,2.5259058475494385Q0.813158,2.5259058475494385,0.4065746,2.9325067475494384Q0,3.3390988475494385,0,3.9141018475494382L0,11.611805847549439Q0,12.186805847549438,0.4065746,12.593395847549438Q0.813158,12.999995847549439,1.388158,12.999995847549439L9.08553,12.999995847549439Q9.66052,12.999995847549439,10.06711,12.593395847549438Q10.47368,12.186805847549438,10.47368,11.611805847549439ZM9.08553,3.5259058475494385Q9.47368,3.5259058475494385,9.47368,3.9141018475494382L9.47368,11.611805847549439Q9.47368,11.999995847549439,9.08553,11.999995847549439L1.388158,11.999995847549439Q1,11.999995847549439,1,11.611805847549439L1,3.9141028475494384Q1,3.5259058475494385,1.388158,3.5259058475494385L9.08553,3.5259058475494385Z'%20fill-rule='evenodd'%20fill='%239B9B9B'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Zn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='11.5'%20height='11.5'%20viewBox='0%200%2011.5%2011.5'%3e%3cg%3e%3cg%3e%3cpath%20d='M0.5,10.5L11,10.5C11.0328,10.5,11.0653,10.50320233,11.0975,10.509607C11.1297,10.5160123,11.161,10.5254967,11.1913,10.53806C11.2216,10.550624,11.2505,10.5660257,11.2778,10.584265C11.3051,10.602505,11.3303,10.623232,11.3536,10.646447C11.3768,10.669662,11.3975,10.694918,11.4157,10.722215C11.434,10.749512,11.4494,10.778327,11.4619,10.808658C11.4745,10.838989,11.484,10.870255,11.4904,10.902455C11.4968,10.934655,11.5,10.96717,11.5,11C11.5,11.03283,11.4968,11.065346,11.4904,11.097545C11.484,11.129745,11.4745,11.161011,11.4619,11.191342C11.4494,11.221673,11.434,11.250488,11.4157,11.277785C11.3975,11.305082,11.3768,11.330338,11.3536,11.353553C11.3303,11.376768,11.3051,11.397495,11.2778,11.415735C11.2505,11.433974,11.2216,11.449376,11.1913,11.46194C11.161,11.474503,11.1297,11.483988,11.0975,11.490393C11.0653,11.496798,11.0328,11.5,11,11.5L0.5,11.5C0.46717,11.5,0.434655,11.496798,0.402455,11.490393C0.370255,11.483988,0.338989,11.474503,0.308658,11.46194C0.278327,11.449376,0.249512,11.433974,0.222215,11.415735C0.194918,11.397495,0.169662,11.376768,0.146447,11.353553C0.123232,11.330338,0.102505,11.305082,0.084265,11.277785C0.0660257,11.250488,0.050624,11.221673,0.03806,11.191342C0.0254967,11.161011,0.0160123,11.129745,0.009607,11.
1097545C0.00320233,11.065346,0,11.03283,0,11C0,10.96717,0.00320233,10.934655,0.009607,10.902455C0.0160123,10.870255,0.0254967,10.838989,0.03806,10.808658C0.050624,10.778327,0.0660257,10.749512,0.084265,10.722215C0.102505,10.694918,0.123232,10.669662,0.146447,10.646447C0.169662,10.623232,0.194918,10.602505,0.222215,10.584265C0.249512,10.5660257,0.278327,10.550624,0.308658,10.53806C0.338989,10.5254967,0.370255,10.5160123,0.402455,10.509607C0.434655,10.50320233,0.46717,10.5,0.5,10.5Z'%20fill-rule='evenodd'%20fill='%23999999'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M7.34881390625,0.146658L7.34910390625,0.146369Q7.41944390625,0.076059,7.51133390625,0.038018C7.57259390625,0.012658,7.63637390625,-0.000014654,7.70268390625,0C7.76899390625,0.0000146794,7.83276390625,0.0127153,7.89401390625,0.038102Q7.98589390625,0.076183,8.056203906250001,0.146524L10.18680390625,2.27805C10.21000390625,2.30126,10.23071390625,2.32652,10.24894390625,2.35381C10.26717390625,2.3811,10.28257390625,2.40991,10.29513390625,2.44024Q10.31396390625,2.48572,10.32356390625,2.53401Q10.33317390625,2.5823,10.33317390625,2.63153C10.33317390625,2.66435,10.32997390625,2.69686,10.32356390625,2.72905Q10.31396390625,2.77733,10.29513390625,2.82282C10.28257390625,2.85315,10.26718390625,2.88196,10.24895390625,2.90925Q10.22160390625,2.95018,10.18680390625,2.985L4.15431390625,9.02014C4.10742390625,9.06705,4.05335390625,9.10319,3.99208390625,9.12858C3.93081390625,9.15397,3.86701390625,9.16667,3.80068390625,9.16667L1.66650390625,9.16667Q1.6172579062499999,9.16667,1.56895890625,9.15706Q1.52065890625,9.14745,1.4751619062499999,9.12861C1.44483090625,9.11604,1.41601590625,9.10064,1.38871890625,9.0824C1.36142190625,9.06416,1.33616590625,9.04343,1.31295090625,9.02022C1.28973590625,8.99701,1.26900890625,8.97175,1.25076890625,8.94445C1.23252960625,8.91715,1.21712790625,8.88834,1.20456390625,8.85801C1.19200060625,8.82768,1.18251620625,8.79641,1.17611090625,8.76421C1.16970623625,8.73201,1.16650390625,8.6995,1.16650390625,8.66667L1.16650390625,6.5433C1.16650390625,6.47705,1.17917160625,6.41332,1.20450690625,6.3521Q1.24250990625,6.26028,1.31273890625,6.18996L7.34881390625,0.146658ZM2.16650390625,6.74988L7.70270390625,1.20703L9.126213906250001,2.63117L3.59351390625,8.16631L2.16650390625,8.16631L2.16650390625,6.74988Z'%20fill-rule='evenodd'%20fill='%23999999'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",gt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAOCAYAAADwikbvAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEcSURBVCiRjZKhUkJRFEXXfryIMwSDgWAkUGjPGZsU/8DgjEGL3c7+AYNjZnDGwh8w/oHRYCDQJBAMBIIBOAYvDsM83rDbvXeve/Y5c6BCtk+r3rUHuo6IZ6ABzCXd2x7u+rISsB0RA0l9SR1J/Yh4td3e9eYlhc+Bhe2HdP7o9Xq36f6zsjIwARq2uylJN8Wf7Br39fwSETfADDiR1Ld9dxCcPiiAFjC2/V7m0Za5vl6vL1LEfZpnWfZm++cftt2KiBHQBKYVcBOYSrq0Pc4BImIAzCR1bM8rWmlExCj5zzbTLiQ9VoEJnkt6AgoA2W5GxFdEXK1Wq9LBbKtWqxWShpKOcmABLCUN87xsZ0q1BPLNwI6B+qEkfxv4/QsvIHDu/FSdVwAAAABJRU5ErkJggg==",_t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAOCAYAAADwikbvAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFhSURBVCiRlZIhS+RRFMV/Z5hgMArOgmGiQWGKQTDYxGbYsJO2CFYXlSnC3EFBDIvK7ob9BGvYsN9gwxoUNhgMggaDwWgwGOQdyx35zzAKXnjwOO+cew73PvFKRcS47R1JZxFxPIpTe0P4F1gHxl4zGCkGApgBHkopk+8S2/4s6Qi4kNTINNPdbvdflaehuHWgaftK0jKwaHtJ0rztK2BK0mxEXAw4R8Sq7R1gKqFL4DfQAnYTfyylfByInQM6AF4eEv8v6YftDeBR0k9JaxExVnVeBMYz8sbQCNYltSXNAd+BRvKpJ2ECQNIX29+A2zxExBNwnPf+2hovYtvXCZ5I+gDcp2i4pqv8ejqe2r6z3en1eu0RI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jKquCr1GJvtG5UAjrpddiAjfTgA+9N3ofpFL/zDaWIIhdvbpyVJt7u1CA2G2HXm43FtDZNOB8iRw8w6ih3nuimA+L2G1IucnjMR5UqHtMG2/H9eRfvvkrRyPPNy8IgqSCld9diEwiVLoPRJcbyFx9GEkwebGLuVYrmi9Cpvvf/38gS+z0HbsNmOfe/jE1t1MbEVP+hpalhkqV4D3GBwmqRET+OV9lana7Np62LE0oU6V4gCFB6JPMd551ksFDNbEYfp6COpC4TO0pM7Ug6SbCiewdbd3zIvhm48FgZB2heKP2i7NlZlGZqANJCvI5gSa+08Y4FzyYLhqN1k3H2FKXgquRm3t/5ccJUEoZlmlc9sDN/e3tV/KdY1QQcAVncQT+B0v9Y4doi38TAAAAAElFTkSuQmCC",qn="_forget_password_modal_tossm_1",Yn="_title_tossm_1",Wn="_email_register_contain_tossm_26",Kn="_get_code_tossm_32",Xn="_input_area_tossm_112",ne={forget_password_modal:qn,title:Yn,email_register_contain:Wn,get_code:Kn,input_area:Xn};function Jn({visible:o,onCancel:t}){const[s]=se.useForm(),{t:a}=le(),h=async()=>{const i=await s.validateFields();try{await Ds({email:i.email,newPassword:i.newPassword,verifyCode:i.verifyCode}),T.success("Password reset successfully, please log in again."),s.resetFields(),t&&t()}catch(j){T.error((j==null?void 0:j.msg)||(j==null?void 0:j.desc)||"Password reset failure.")}},[d,_]=n.useState(!1),[x,v]=n.useState(60),l=n.useRef(null),y=async()=>{try{const i=s.getFieldValue("email");if(!i){T.error(a("loginModal.emailPlaceholder"));return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)){T.error(a("loginModal.emailInvalid"));return}await Os({email:i}),T.success(a("loginModal.sendCodeSuccess")),_(!0),v(60),l.current&&clearInterval(l.current),l.current=setInterval(()=>{v(m=>m<=1?(clearInterval(l.current),_(!1),60):m-1)},1e3)}catch(i){T.error((i==null?void 0:i.msg)||(i==null?void 0:i.desc)||a("loginModal.sendCodeFailed"))}},k=()=>e.jsx(he,{onClick:y,disabled:d,type:"link",style:{padding:0,height:"auto",fontSize:"12px"},className:ie(ne.get_code,{[ne.get_code_disabled]:d}),children:d?a("loginModal.resendAfter",{countdown:x}):a("loginModal.getCodeButton")});return e.jsx(ce,{onOk:h,onCancel:()=>{s.resetFields(),t()},open:o,centered:!0,children:e.jsxs("div",{className:ne.forget_password_modal,children:[e.jsx("div",{className:ne.title,children:"Recover Password"}),e.jsxs(se,{form:s,layout:"vertical",autoComplete:"off",className:ne.email_register_contain,children:[e.jsx(se.Item,{name:"email",label:"Email Address",rules:[{required:!0,message:a("loginModal.emailPlaceholder")},{type:"email",message:a("loginModal.emailInvalid")}],children:e.jsx(re,{placeholder:a("loginModal.emailPlaceholder"),className:ne.input_area})}),e.jsx(se.Item,{label:"Verification Code",name:"verifyCode",rules:[{required:!0,message:a("loginModal.emailVerifyCodePlaceholder")},{len:6,message:a("loginModal.emailVerifyCodeLength")}],children:e.jsx(re,{placeholder:a("loginModal.emailVerifyCodePlaceholder"),maxLength:6,className:ne.input_area,suffix:k()})}),e.jsx(se.Item,{label:"Password",name:"newPassword",validateTrigger:"onBlur",rules:[()=>
1({validator(i,j){if(j.length<6||j.length>20)return Promise.reject(new Error(a("loginModal.passwordPlaceholder")))}})],children:e.jsx(re.Password,{placeholder:a("loginModal.passwordPlaceholder"),maxLength:20,className:ne.input_area})}),e.jsx(se.Item,{label:"Enter The Password Again",name:"confirmPassword",dependencies:["newPassword"],validateTrigger:"onBlur",rules:[{required:!0,message:a("loginModal.confirmPasswordPlaceholder")},({getFieldValue:i})=>({validator(j,m){return!m||i("newPassword")===m?Promise.resolve():Promise.reject(new Error(a("loginModal.confirmPasswordMismatch")))}})],children:e.jsx(re.Password,{placeholder:a("loginModal.confirmPasswordPlaceholder"),maxLength:20,className:ne.input_area})})]})]})})}const $n=({visible:o,onCancel:t})=>{var X,O,Y,w;const[s,a]=n.useState(""),[h,d]=n.useState(!1),{handleToChat:_}=ft(),[x]=ee(yt),[v]=ee(jt),l=ge(u=>u.user),[y,k]=n.useState(0),{t:i}=le(),[j,m]=n.useState([{tab:i("sidebar.recentlyUsed"),key:"1"},{tab:i("sidebar.favorites"),key:"2"}]),[f,B]=n.useState(((X=l.userProfile)==null?void 0:X.nickname)||l.nickname||l.login),[G,H]=n.useState(!1),[r,Q]=n.useState(""),I=()=>{t(),H(!1)},N=()=>{y===0?St({chatListId:r}).then(u=>{d(!1),T.success(i("sidebar.deleteSuccess")),oe.emit("chatListChange")}).catch(u=>{console.log(u),d(!1),T.error(i("sidebar.deleteFail"))}):As({botId:s}).then(()=>{d(!1),T.success(i("sidebar.cancelFavoriteSuccess")),oe.emit("favoriteChange",s)}).catch(u=>{console.log(u),d(!1),T.error(i("sidebar.cancelFavoriteFail"))})},p=(u,q,te)=>{var _e;q.stopPropagation(),te?Q(u==null?void 0:u.id):a((_e=u==null?void 0:u.bot)==null?void 0:_e.botId),d(!0)},[z,g]=n.useState(!1),F=()=>{ce.confirm({title:i("sidebar.deleteAccountConfirmTitle"),content:i("sidebar.deleteAccountConfirmContent"),centered:!0,maskClosable:!1,onOk:async()=>{try{await zs(),T.success(i("sidebar.deleteAccountSuccess"),1.5,async()=>{await Vs().catch(()=>{}),ge.setState({user:{},token:null,isAuthenticated:!1}),window.location.href="/"})}catch(u){T.error((u==null?void 0:u.msg)||i("sidebar.deleteAccountFail"))}}})};return e.jsxs(ce,{wrapClassName:b.open_source_modal,width:837,open:o,centered:!0,onCancel:I,destroyOnClose:!0,maskClosable:!1,footer:null,children:[e.jsxs("div",{className:b.modal_content,children:[e.jsxs("div",{className:b.header,children:[e.jsx("div",{children:e.jsx(Us,{coverUrl:(l==null?void 0:l.avatar)||((O=l==null?void 0:l.userProfile)==null?void 0:O.avatar)||bt,flag:!0})}),e.jsxs("div",{children:[e.jsxs("div",{className:b.flexTitle,children:[!G&&e.jsxs(e.Fragment,{children:[e.jsx("div",{title:((Y=l.userProfile)==null?void 0:Y.nickname)||l.nickname||l.login,className:b.header_name,children:((w=l.userProfile)==null?void 0:w.nickname)||l.nickname||l.login}),e.jsx("img",{onClick:()=>{var u;H(!0),B(((u=l.userProfile)==null?void 0:u.nickname)||l.nickname||l.login)},className:b.editBotton,src:Zn,alt:""})]}),G&&e.jsxs(e.Fragment,{children:[e.jsx(re,{value:f,placeholder:i("sidebar.pleaseEnterNickname"),showCount:!0,maxLength:20,onChange:u=>{B(u.target.value)}}),e.jsx("img",{onClick:()=>{H(!1)},className:b.noBotton,src:Rs,alt:""}),e.jsx("img",{onClick:()=>{const u=new FormData;u.append("nickname",f),as(u).then(q=>{T.success(i("sidebar.updateSuccess")),ge.setState({user:{...l,nickname:f}}),H(!1)}).catch(q=>{T.error(q.msg)})},className:b.yesBotton,src:Fs,alt:""})]})]}),e.jsxs("div",{className:b.flexInfo,children:[e.jsx("img",{src:Hn,alt:""}),e.jsxs("div",{className:b.uid,children:["UID:",l==null?void 0:l.uid]}),e.jsx("img",{onClick:()=>{Ss({text:`${l==null?void 0:l.uid}`,successText:i("sidebar.copySuccess")})},className:b.copy,src:Gn,alt:""})]}),e.jsx("div",{className:"flex gap-2",children:e.jsx(Nt,{menu:{items:[{key:"changepsd",label:i("sidebar.changepsd"),onClick:()=>g(!0)},{key:"deleteAccount",label:i("sidebar.deleteAccount"),onClick:F}]},children:e.jsx("div",{className:b.flexChangpsd,children:i("sidebar.accountSetting")})})})]})]}),e.jsxs("div",{className:b.content,children:[e.jsx("div",{className:b.tabs,children:j.map((u,q)=>e.jsx("div",{onClick:()=>{k(q)},className:y===q?b.tabActive:b.tab,children:u.tab},q))}),e.jsxs("div",{className:b.contentBox,children:[e.jsx(ce,{open:h,onCancel:()=>d(!1),closeIcon:null,wrapClassName:b.delete_mode,centered:!0,width:352,maskClosable:!1,onOk:N,children:e.jsxs("div",{className:b.delete_mode_title,children:[e.jsx("img",{src:xt,alt:""}),e.jsx("span",{children:i(y===0?"sidebar.confirmRemoveChat":"sidebar.confirmRemoveFavorite")})]})}),y===0&&(x==null?void 0:x.length)===0&&e.jsx("div",{className:b.emptyBox,children:e.jsx("img",{src:ut,alt:""})}),y===0&&(x==null?void 0:x.length)>0&&x.map((u,q)=>e.jsxs("div",{onClick:()=>{_(u)},className:b.itemBox,children:[e.jsxs("div",{className:b.itemHead,children:[e.jsx("img",{className:b.headImg,src:u.botAvatar,alt:""}),e.jsx("div",{title:u.botTitle,className:b.headTitle,children:u.botTitle})]}),e.jsx("div",{title:u.botDesc,className:b.headDesc,children:u.botDesc}),e.jsxs("div",{className:b.itemInfo,children:[e.jsx("img",{className:b.actImg,src:gt,alt:""}),e.jsx("div",{className:b.actText,children:u.creatorName||i("home.officialAssistant")}),e.jsx("img",{className:b.reduImg,src:_t,alt:""}),e.jsx("div",{className:b.reduText,children:u.hotNum||0})]}),e.jsx("div",{onClick:te=>{p(u,te,!0)},className:b.delete})]},q)),y===1&&(v==null?void 0:v.length)>0&&v.map((u,q)=>e.jsxs("div",{onClick:()=>{_(u.bot)},className:b.itemBox,children:[e.jsxs("div",{className:b.itemHead,children:[e.jsx("img",{className:b.headImg,src:u.bot.avatar,alt:""}),e.jsx("div",{title:u.bot.botTitle,className:b.headTitle,children:u.bot.botName})]}),e.jsx("div",{title:u.bot.botDesc,className:b.headDesc,children:u.bot.botDesc}),e.jsxs("div",{className:b.itemInfo,children:[e.jsx("img",{className:b.actImg,src:gt,alt:""}),e.jsx("div",{className:b.actText,children:u.bot.creatorName||i("home.officialAssistant")}),e.jsx("img",{className:b.reduImg,src:_t,alt:""}),e.jsx("div",{className:b.reduText,children:u.bot.hotNum||0})]}),e.jsx("div",{onClick:te=>{p(u,te,!1)},className:b.delete})]},q)),y===1&&(v==null?void 0:v.length)===0&&e.jsx("div",{className:b.emptyBox,children:e.jsx("img",{src:ut,alt:""})})]})]})]}),e.jsx(Jn,{visible:z,onCancel:()=>g(!1)})]})},eo="/assets/newbie1-C16sd6uk.gif",to="/assets/icon1-DgAbCmq-.png",so="/assets/newbie2-DWYHQchR.gif",ao="/assets/icon2-BLuuyCwt.png",no="/assets/newbie3-CKZqkn3Q.gif",oo="/assets/icon3-CLNakMrd.png",co="/assets/newbie4-KKkPLcRe.gif",io="/assets/icon4-CJDxvER6.png",lo="_modalBody_11gh7_1",ro="_title_11gh7_10",po="_titleGradient_11gh7_18",mo="_subTitle_11gh7_25",ho="_preview_11gh7_36",go="_previewImg_11gh7_48",_o="_section_11gh7_56",uo="_sectionIcon_11gh7_63",xo="_sectionContent_11gh7_71",fo="_sectionTitle_11gh7_75",vo="_sectionDesc_11gh7_85",wo="_footer_11gh7_94",bo="_stepsDots_11gh7_105",Co="_dot_11gh7_111",Ao="_dotActive_11gh7_118",yo="_navButtons_11gh7_122",jo="_prevBtn_11gh7_127",No="_nextBtn_11gh7_140",So="_finishBtn_11gh7_154",Z={modalBody:lo,title:ro,titleGradient:po,subTitle:mo,preview:ho,previewImg:go,section:_o,sectionIcon:uo,sectionContent:xo,sectionTitle:fo,sectionDesc:vo,footer:wo,stepsDots:bo,dot:Co,dotActive:Ao,navButtons:yo,prevBtn:jo,nextBtn:No,finishBtn:So},Tt=n.memo(({visible:o,onClose:t,title:s="星辰Agent平台新手指南",subTitle:a="1分钟了解星辰能帮你做什么",steps:h,initialStepIndex:d=0,className:_,bodyClassName:x,width:v=650,maskClosable:l=!1})=>{const y=n.useMemo(()=>[{image:eo,title:"创建智能体",icon:to,description:"编写提示词或编排工作流,即可创建智能体;丰富模板可选"},{image:so,title:"发布智能体",icon:ao,description:"可发布至星辰平台、公众号、发布为API或MCP Server;智能体分析页可查看使用情况"},{image:no,title:"效果测评",icon:oo,description:"支持人工测评、智能测评,
1可自定义评分维度,生成测评报告"},{image:co,title:"团队协作",icon:io,description:"升级至团队版,享受团队、更高并发、更大容量等功能"}],[]),k=h&&h.length>0?h:y,[i,j]=n.useState(Math.min(Math.max(0,d),k.length-1)),[m,f]=n.useState(!1);n.useEffect(()=>{o&&(j(Math.min(Math.max(0,d),k.length-1)),IFlyCollector==null||IFlyCollector.onEvent("agent_new_users_guide",{uid:`${xe("account_id")}`,location:"1"},"new25_agent_center"))},[o,k]),n.useEffect(()=>{f(!1)},[i,o]);const B=n.useCallback(()=>{j(Q=>Math.max(0,Q-1)),IFlyCollector==null||IFlyCollector.onEvent("agent_new_users_guide",{uid:`${xe("account_id")}`,location:String(i)},"new25_agent_center")},[i]),G=n.useCallback(()=>{j(Q=>Math.min(k.length-1,Q+1)),IFlyCollector==null||IFlyCollector.onEvent("agent_new_users_guide",{uid:`${xe("account_id")}`,location:String(i+2)},"new25_agent_center")},[k.length,i]),H=n.useCallback(()=>{try{t()}catch{console.warn("NewbieGuideModal onClose error.")}},[t]),r=k[i];return e.jsx(ce,{open:o,onCancel:H,footer:null,width:v,centered:!0,maskClosable:l,className:_,destroyOnClose:!0,children:e.jsxs("div",{className:ie(Z.modalBody,x),children:[e.jsxs("div",{className:Z.title,children:["星辰Agent平台",e.jsx("span",{className:Z.titleGradient,children:"新手指南"})]}),e.jsx("div",{className:Z.subTitle,children:a}),r!=null&&r.image&&!m?e.jsx("div",{className:Z.preview,children:e.jsx("img",{className:Z.previewImg,src:r.image,alt:r.title,onError:()=>f(!0)})}):e.jsx("div",{className:Z.preview}),e.jsxs("div",{className:Z.section,children:[(r==null?void 0:r.icon)&&e.jsx("img",{src:r.icon,alt:"",className:Z.sectionIcon}),e.jsxs("div",{className:Z.sectionContent,children:[e.jsx("div",{className:Z.sectionTitle,children:r==null?void 0:r.title}),e.jsx("div",{className:Z.sectionDesc,children:r==null?void 0:r.description})]})]}),e.jsxs("div",{className:Z.footer,children:[e.jsxs("div",{className:Z.navButtons,children:[i>0&&e.jsx(he,{className:Z.prevBtn,onClick:B,children:"上一步"}),i<k.length-1?e.jsx(he,{className:Z.nextBtn,type:"primary",onClick:G,children:"下一步"}):e.jsx(he,{className:Z.finishBtn,type:"primary",onClick:H,children:"完成"})]}),e.jsx("div",{className:Z.stepsDots,children:k.map((Q,I)=>e.jsx("span",{className:ie(Z.dot,I===i&&Z.dotActive),"aria-label":I===i?"active-step":"step"},I))})]})]})})});Tt.displayName="NewbieGuideModal";const ko=45,Qo={searchValue:"",pageIndex:1,pageSize:ko,botType:""};function Io(){var at,nt,ot,ct;const{t:o,i18n:t}=le(),s=ts(),{roleTextMap:a}=Hs(),{setUserRole:h}=ge(),{checkSpaceExpiredFn:d}=Gs(),[,_]=ee(yt),[,x]=ee(jt),[v,l]=n.useState(!1),[y,k]=ee(xs),[i,j]=ee(Ct),[m,f]=ee(At),[B,G]=n.useState(t.language);n.useEffect(()=>{const c=()=>{G(t.language)};return t.on("languageChanged",c),()=>{t.off("languageChanged",c)}},[t]);const H=()=>{window.innerWidth<1024&&f(!0)};n.useEffect(()=>(H(),window.addEventListener("resize",H),()=>{window.removeEventListener("resize",H)}),[f]);const r=ge(c=>c.user),Q=ge(c=>c.setMobile),I=fe(),N=Xe(),p=n.useRef(null),[z,g]=n.useState(!1),[F,X]=n.useState(!1),[O,Y]=n.useState(""),[w,u]=n.useState(""),[q,te]=n.useState(!1),[_e,C]=n.useState(!1),[M,E]=n.useState(Qo),[P,J]=n.useState([]),[K,W]=n.useState(!0),[pe,Ie]=n.useState(""),{handleToChat:Bt}=ft(),{fetchSpecialUser:Et}=s0(),{joinedEnterpriseList:Je,checkNeedCreateTeamFn:Rt,isTeamSpaceEmpty:Le}=wt(),[me,ve]=n.useState(!1);n.useEffect(()=>{const c=L=>{L.persisted&&localStorage.getItem("hasClosedNewbieGuide")&&me&&ve(!1)};return window.addEventListener("pageshow",c),()=>{window.removeEventListener("pageshow",c)}},[me]);const[Ft,ye]=n.useState(!1),[Te,Be]=n.useState(""),[Uo,Do]=n.useState(!1),{isShowSpacePopover:$e,spaceName:et,spaceType:ae,spaceId:Ee,enterpriseId:Re,spaceAvatar:Mt,setSpaceType:Pt,setEnterpriseId:Ut,setEnterpriseName:Dt,setIsShowSpacePopover:Ot}=Ce(),{info:{logoUrl:Fe},setCertificationType:tt,setEnterpriseInfo:zt}=Ke(),Vt=n.useRef(null);n.useEffect(()=>{if(new URLSearchParams(N.search).get("createAgent")==="true"){te(!0);const A=new URL(window.location.href);A.searchParams.delete("createAgent"),window.history.replaceState({},document.title,A.toString())}localStorage.getItem("hasClosedNewbieGuide")&&me&&ve(!1)},[N.search,me]),n.useEffect(()=>{const c=window.location.pathname.replace("/application-development","");Ue.map(A=>{A.tabs.map(Ne=>{c.includes(Ne.activeTab)&&u(Ne.activeTab)})}),localStorage.getItem("hasClosedNewbieGuide")&&me&&ve(!1)},[N,me]);function st(c){p.current&&!p.current.contains(c.target)&&g(!1)}const je=async()=>{try{const c=await Ns(),L=c==null?void 0:c.filter(A=>A.botId!==4419567&&A.botId!==4393005);J(L),_(L)}catch(c){console.log(c)}},Me=async()=>{try{const c=await ys(M);x(c.pageList)}catch(c){console.log(c)}},Pe=()=>{te(!0)},Ht=()=>(ns().then(c=>{Rt(),Q(c==null?void 0:c.mobile);const L=localStorage.getItem("hasClosedNewbieGuide");c!=null&&c.newUser&&!L&&ve(!0)}
1),document.body.addEventListener("click",st),()=>{document.body.removeEventListener("click",st)}),Gt=()=>{const L=new URLSearchParams(window.location.search).get("bd_vid");L&&sessionStorage.setItem("bd_vid",L)},Zt=c=>{Bt(c)},qt=(c,L)=>{L.stopPropagation(),Ie(c==null?void 0:c.id),l(!0)},Yt=()=>{St({chatListId:pe}).then(c=>{l(!1),je(),T.success(o("commonModal.agentDelete.success"))}).catch(c=>{console.log(c),l(!1),T.error(o("commonModal.agentDelete.failed"))})},Wt=async c=>{const A=await It({typeId:c,page:1,pageSize:100});j(A)},Kt=c=>{c.stopPropagation(),g(!z)};n.useEffect(()=>{var c;((c=r==null?void 0:r.userProfile)!=null&&c.nickname||r!=null&&r.nickname||r!=null&&r.login||r!=null&&r.uid)&&X(!0)},[r]);const Xt=async()=>{ae==="team"&&Re?await Ms()&&(ye(!0),tt(!0),Jt()):(ye(!1),Be(""))},Jt=async()=>{const c=await Ps();h(ss.ENTERPRISE,lt(c==null?void 0:c.role,!0));const L={...c,avatarUrl:(c==null?void 0:c.avatarUrl)||ps,roleTypeText:a[lt(c==null?void 0:c.role,!0)]};zt(L),Be(c.logoUrl)};n.useEffect(()=>{Fe&&Be(Fe)},[Fe]),n.useEffect(()=>{ae==="team"&&Re?Xt():(ye(!1),tt(!1))},[ae,Re]),n.useEffect(()=>{Je.length===0&&(ye(!1),Pt("personal"),Ut(""),Dt(""))},[Je]),n.useEffect(()=>(Gt(),Ht(),je(),Me(),Wt("0"),Et(),oe.on("createBot",Pe),oe.on("chatListChange",je),oe.on("favoriteChange",Me),()=>{oe.off("createBot",Pe),oe.off("chatListChange",je),oe.off("favoriteChange",Me)}),[]);const we=n.useRef(null);n.useEffect(()=>(we.current&&clearTimeout(we.current),ae&&(we.current=window.setTimeout(()=>{console.log("获取用户套餐信息"),d()},300)),()=>{we.current&&clearTimeout(we.current)}),[ae,Ee]);const $t=n.useMemo(()=>Le?Ue.slice(0,1):Ue.map(c=>({...c,tabs:c.tabs.map(L=>{if(L.activeTab==="agent"){let A=o("sidebar.myAgents");return(ae==="personal"&&Ee||ae==="team")&&(A=o("sidebar.myAgentsManagement")),{...L,subTitle:A}}return L}).filter(L=>!(s==="en"&&L.subTitle==="SuperAgent"))})),[ae,Ee,et,Le,s,o,m]);return e.jsxs("div",{className:`${S.sidebarContainer} ${m&&S.collapsedSidebar}`,children:[e.jsx("div",{className:S.collapseIcon,onClick:()=>{f(!m)},children:e.jsx("img",{src:X0,className:m?S.collapseIconActive:""})}),Ft&&Te?m?e.jsx("img",{src:Te,className:"rounded-[6px] cursor-pointer transition-all duration-300 ease-in-out",alt:"",style:{margin:"0 auto",width:"34px",height:"34px",opacity:1},onClick:()=>{I("/workflow")}}):e.jsxs("div",{className:"flex justify-center h-[25px] w-[190px] cursor-pointer items-center transition-all duration-300 ease-in-out",onClick:()=>{I("/workflow")},children:[e.jsx("img",{src:Te,height:25,width:25,className:"mr-[8px] rounded-[4px] transition-all duration-300 ease-in-out",alt:""}),e.jsx("img",{src:J0,height:25,width:90,className:"transition-all duration-300 ease-in-out",alt:""})]}):e.jsx("img",{src:m?Z0:s==="zh"?ws:Cs,className:"w-[190px] cursor-pointer",alt:"讯飞星辰Agent平台",style:{margin:"0 auto",height:m?"34px":"auto"},onClick:()=>{I("/workflow")}}),e.jsx("div",{className:"w-full mt-[30px]",children:e.jsxs("div",{className:S.create_btn,style:{margin:"0 auto",width:m?"36px":"auto"},onClick:()=>{if(IFlyCollector==null||IFlyCollector.onEvent("create_apps",{uid:`${xe("account_id")}`},"new25_agent_center"),!F)return be(),!1;const c=sessionStorage.getItem("bd_vid"),L=new URL(window.location.href);c&&(L.searchParams.set("bd_vid",c),window.history.pushState({},"",L.toString())),Pe()},children:[e.jsx("img",{src:G0,className:"w-[14px] h-[14px]",alt:""}),!m&&e.jsx("span",{className:S.create_text,children:o("sidebar.create")})]})}),e.jsxs("div",{className:`${S.sidebarMain} ${S.collapsedMain} ${$e?S.no_scroll:""}`,children:[e.jsx("div",{className:"flex flex-col gap-3",children:$t.map((c,L)=>e.jsxs("div",{className:"font-medium desc-color",children:[c.title&&e.jsx(He,{content:wa,title:null,trigger:"click",open:$e,placement:"rightTop",overlayClassName:S.spacePopover,arrow:!1,getPopupContainer:A=>A.parentElement||document.body,autoAdjustOverflow:!1,onOpenChange:A=>{A||Ot(!1)},children:e.jsx("div",{className:ie(S.collapsedItemTitle,S.space_name),ref:Vt,children:e.jsx("div",{className:S.space_name_left,children:e.jsx("div",{className:S.space_avatar,children:m?e.jsx("img",{src:Mt||$s,alt:"space"}):e.jsx("div",{className:S.space_name_text,children:et||o(ae==="personal"?"sidebar.personalSpace":"sidebar.teamSpace")})})})})}),c.tabs.map((A,Ne)=>e.jsxs("div",{className:`relative flex items-center px-[12px] py-[12px] gap-2 cursor-pointer hover:bg-[rgba(99,86,234,0.08)] hover:text-[#6356EA] ${[w,O].includes(A.activeTab)?"bg-[rgba(99,86,234,0.08)] text-[#6356EA] font-medium":"text-[#222529]"}  ${S.collapsedItem} ${A.subTitle==="插件广场"||A.subTitle==="智能体广场"||A.subTitle==="SuperAgent"?"":!m}`,onClick:()=>{const it=/^https?:\/\//.test(A.path);if(A.subTitle==="智能体广场"&&(IFlyCollector==null||IFlyCollector.onEvent("agents_stores",{uid:`${xe("account_id")}`},"new25_agent_center")),A.subTitle==="插件广场"&&(IFlyCollector==null||IFlyCollector.onEvent("plugins_stores",{uid:`${xe("account_id")}`},"new25_agent_center")),!F&&A.subTitle!=="智能体广场"&&!it){be();return}if(it){window.open(A.path,"_blank","noopener,noreferrer");return}u(A.activeTab),I(A.path)},onMouseEnter:()=>Y(A.activeTab),onMouseLeave:()=>Y(""),style:{borderRadius:10},children:[e.jsx("img",{src:[w,O].includes(A.activeTab)?A.iconAct:A.icon,className:"w-[18px] h-[18px] flex-shrink-0",alt:""}),!m&&e.jsxs("span",{className:"relative flex items-center justify-between flex-1 gap-1",
1style:{fontSize:"14px"},children:[e.jsx(de,{title:A.subTitle,overlayClassName:"black-tooltip",children:e.jsx("span",{className:"truncate inline-block",style:{maxWidth:"140px"},children:A.subTitle})}),A.subTitle==="SuperAgent"&&e.jsx("img",{src:e0,alt:"",className:"w-[25px]"})]}),m&&e.jsx("div",{className:S.hoverTitle,style:{display:O===A.activeTab?"block":"none"},children:A.subTitle})]},`${Ne}-${A==null?void 0:A.subTitle}`))]},`${L}-${c==null?void 0:c.title}`))}),Le&&e.jsx(hn,{}),!m&&e.jsx(e.Fragment,{children:e.jsxs("div",{className:S.recent,children:[e.jsxs("div",{className:S.recent_title,onClick:()=>W(!K),children:[e.jsx("span",{children:o("sidebar.recentlyUsed")}),e.jsx("img",{src:t0,alt:"",className:`transition-transform duration-300 ${K?"":"rotate-180"}`})]}),e.jsx("div",{className:ie(S.recent_list,K&&S.show_recent_list),children:K&&(P==null?void 0:P.length)>0&&P.map(c=>e.jsxs("div",{className:S.recent_item,onClick:()=>Zt(c),children:[e.jsx("img",{src:c==null?void 0:c.botAvatar,alt:"",className:"w-[18px] h-[18px] rounded-full"}),e.jsx("span",{className:S.recent_name,children:c==null?void 0:c.botTitle}),e.jsx("div",{className:S.delete_chat,onClick:L=>qt(c,L)})]},c.botId))})]})})]}),e.jsxs("div",{className:`flex items-center justify-center mt-1 ${S.toolsIcon}`,children:[e.jsx(de,{title:o("sidebar.openSource"),overlayClassName:"black-tooltip",children:e.jsxs("div",{className:"relative w-[68px] h-[18px] flex items-center justify-center border-r-[1px] border-[#E2E8FF] mb-4",children:[e.jsx("img",{onClick:()=>{window.open("https://agent.xfyun.cn/opensource")},src:Y0,className:"w-[16px] h-[16px] cursor-pointer",alt:""}),e.jsx("img",{src:W0,alt:"",className:"w-[25px] h-[12px] cursor-pointer absolute left-[20px] top-[-7px]"})]})}),e.jsx(de,{title:o("sidebar.documentCenter"),overlayClassName:"black-tooltip",children:e.jsx("div",{className:"relative w-[68px] h-[18px] flex items-center justify-center border-r-[1px] border-[#E2E8FF] mb-4",children:e.jsx("img",{onClick:()=>{window.open("https://astron.ai/doc/platform-introduction.html")},src:q0,className:"w-[18px] h-[18px] cursor-pointer",alt:""})})}),e.jsx(de,{title:o("sidebar.messageCenter"),overlayClassName:"black-tooltip",children:e.jsxs("div",{className:"relative w-[68px] h-[18px] flex items-center justify-center mb-4",children:[e.jsx("img",{onClick:()=>{F?k(!0):be()},src:K0,className:"w-[18px] h-[18px] cursor-pointer",alt:""}),((at=i==null?void 0:i.messages)==null?void 0:at.filter(c=>c.isRead!==1).length)>0&&e.jsx("div",{className:"absolute top-[-13px] right-[-13px] w-[20px] h-[20px] bg-[#F74E43] rounded-full text-[#fff] text-xs text-center",style:{lineHeight:"20px"},children:i.messages.filter(c=>c.isRead!==1).length>99?"99+":i.messages.filter(c=>c.isRead!==1).length})]})})]}),e.jsx("div",{className:"mt-6 flex flex-col gap-2.5 pt-4 border-t border-[#E2E8FF]",children:e.jsx(He,{content:e.jsx(K1,{setPersonCenterVisible:C,onClose:()=>g(!1)}),placement:"top",title:null,arrow:!1,trigger:"click",forceRender:!0,open:F&&z,overlayClassName:S.control_modal_popover,onOpenChange:c=>{g(c)},children:e.jsx("div",{className:S.bottomLogin,onClick:Kt,children:F?e.jsxs(e.Fragment,{children:[e.jsx("img",{src:(r==null?void 0:r.avatar)||((nt=r==null?void 0:r.userProfile)==null?void 0:nt.avatar)||bt,className:"w-[28px] h-[28px] cursor-pointer rounded-full",alt:"",onClick:()=>{if(F)return!1;be()}}),!m&&e.jsx(e.Fragment,{children:e.jsxs("div",{className:"ml-2.5 cursor-pointer flex items-center relative flex-1 min-w-0",children:[e.jsx("span",{className:" text-overflow text-[14px] text-[#333333]",title:((ot=r==null?void 0:r.userProfile)==null?void 0:ot.nickname)||(r==null?void 0:r.nickname)||(r==null?void 0:r.login),children:((ct=r==null?void 0:r.userProfile)==null?void 0:ct.nickname)||(r==null?void 0:r.nickname)||(r==null?void 0:r.login)}),e.jsx("div",{className:"relative",children:e.jsx("img",{src:H0,className:`w-4 h-4 ml-2 ${S["rotate-arrow"]} ${z?S.up:""}`,alt:""})})]})})]}):e.jsx("div",{className:S.login_btn,onClick:be,children:o("sidebar.login")})})})}),y?e.jsx(V0,{changeNoticeModal:k}):null,e.jsx(bs,{visible:q,onCancel:()=>{te(!1)}}),e.jsx($n,{visible:_e,onCancel:()=>{C(!1)}}),e.jsx(ce,{open:v,onCancel:()=>l(!1),closeIcon:null,wrapClassName:S.delete_mode,centered:!0,width:352,maskClosable:!1,onOk:Yt,children:e.jsxs("div",{className:S.delete_mode_title,children:[e.jsx("img",{src:xt,alt:""}),e.jsx("span",{children:o("sidebar.confirmRemove")})]})}),e.jsx(Tt,{visible:me,onClose:()=>{ve(!1),localStorage.setItem("hasClosedNewbieGuide","true")}})]})}const Lo="_headerTitle_1pddq_2",To="_headerTab_1pddq_13",Bo="_headerTabActive_1pddq_29",Eo="_toolsContainer_1pddq_35",Ro="_searchContainer_1pddq_41",ue={headerTitle:Lo,headerTab:To,headerTabActive:Bo,toolsContainer:Eo,searchContainer:Ro},Ve=[{key:"plugin",path:"/resource/plugin",iconClass:"plugin-icon",title:"common.header.plugin",searchPlaceholder:"common.inputPlaceholder",createButtonText:"plugin.createPlugin",createButtonKey:"create-plugin"},{key:"knowledge",path:"/resource/knowledge",iconClass:"knowledge-icon",title:"common.header.knowledge",searchPlaceholder:"common.inputPlaceholder",createButtonText:"knowledge.createNewKnowledge",createButtonKey:"create-knowledge"},{key:"database",path:"/resource/database",iconClass:"database-icon",title:"common.header.database",searchPlaceholder:"common.inputPlaceholder",createButtonText:"database.createDatabase",createButtonKey:"create-database"}];function Fo({onSearch:o,onCreate:t}){const{t:s}=le(),a=fe(),h=Xe(),[d,_]=n.useState(""),[x,v]=n.useState("");n.useEffect(()=>{var m,f;_((f=(m=h==null?void 0:h.pathname)==null?void 0:m.split("/"))==null?void 0:f.pop())},[h]);const l=n.useMemo(()=>Ve.find(m=>m.key===d),[d]),y=n.useRef(Qt.debounce((m,f,B)=>{B==null||B(m,f)},500)).current,k=n.useCallback(m=>{const f=m.target.value;v(f),y(f,d,o)},[d,o,y]),i=m=>{t==null||t(m)},j=m=>{var f;m!==d&&(a((f=Ve.find(B=>B.key===m))==null?void 0:f.path),_(m),v(""))};return e.jsxs("div",{className:"mx-auto max-w-[1425px]",style:{width:"86%"},children:[e.jsx("div",{className:ue.headerTitle,children:s("sidebar.resourceManagement")}),e.jsxs("div",{className:"flex items-center justify-between relative",children:[e.jsx("div",{className:"flex items-center",children:Ve.map((m,f)=>e.jsx("div",{onClick:()=>{j(m==null?void 0:m.key)},className:`${ue.headerTab} ${d===(m==null?void 0:m.key)?ue.headerTabActive:""}`,children:e.jsx("span",{children:s(m==null?void 0:m.title)})},f))}),e.jsxs("div",{className:ue.toolsContainer,children:[l&&e.jsx("div",{className:ue.searchContainer,children:e.jsx(qs,{className:"retractable-input-UI",restrictFirstChar:!0,onChange:k,placeholder:s(l.searchPlaceholder),value:x})}),l&&e.jsx(Zs,{config:{key:l.createButtonKey,text:s(l.createButtonText),type:"primary",size:"small",icon:e.jsx("img",{src:Ys,alt:"arrow-down",style:{width:14,height:14}}),onClick:()=>i(d)},className:ue.createButton})]})]})]})}const Mo=["knowledge","plugin","database","rpa"],Po=["/store/plugin","/management/","/starry/"];function J2(){const o=Xe();fe();const s=n.useMemo(()=>{var v;const d=(v=o==null?void 0:o.pathname)==null?void 0:v.split("/"),_=d==null?void 0:d.pop();return Po.some(l=>o.pathname.startsWith(l))?!1:Mo.includes(_)},[o.pathname]),a=n.useCallback((d,_)=>{const x=new CustomEvent("headerSearch",{detail:{value:d,type:_}}
1);window.dispatchEvent(x)},[]),h=n.useCallback(d=>{if(!["plugin","knowledge","database","rpa"].includes(d))return;const _=new CustomEvent("headerCreate",{detail:{type:d}});window.dispatchEvent(_)},[]);return e.jsx(Ks,{onReset:()=>{window.location.href="/workflow"},FallbackComponent:Js,children:e.jsxs("div",{className:"flex h-full w-full overflow-hidden global-background",children:[e.jsx(Io,{}),e.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden page-container-UI",children:[s&&e.jsx(Fo,{onSearch:a,onCreate:h}),e.jsx(Qs,{})]})]})})}const $2=(o,{onSearch:t,onCreate:s})=>{n.useEffect(()=>{if(!["plugin","knowledge","database","rpa"].includes(o))return;const a=d=>{const{value:_,type:x}=d.detail;x===o&&t(_,x)},h=d=>{const{type:_}=d.detail;_===o&&s(_)};return window.addEventListener("headerSearch",a),window.addEventListener("headerCreate",h),()=>{window.removeEventListener("headerSearch",a),window.removeEventListener("headerCreate",h)}},[o,t,s])};export{J2 as default,$2 as useHeaderOperations};

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.