PageSourceSearch

https://astron.ai/assets/index-6HM8usTr.js

js astron.ai collected 2026-10-01 16:41:05 UTC 37,659 bytes, 2 lines download raw bytes

1import{r as a,j as e}from"./index-CJQpyVoF.js";import{u as ce}from"./index-DNC8bdm4.js";import{S as nt}from"./index-Dv1xK5bM.js";import{s as st,S as le}from"./spaceAvatar-D_0gp6HY.js";import{B as X,S as ot}from"./index-D5wV5giV.js";import{S as he}from"./SpaceButton-Du44tacF.js";import{ac as P,ad as O,u as xe,s as g,o as ge,y as Ie}from"./inviteCode-D9rgtvJs.js";import{B as ct}from"./back-Dxl-djPv.js";import{u as Y}from"./useSpaceI18n-BZqoDJzs.js";import{r as Z,Q as Se,O as Re,T as lt,U as rt,V as it,W as dt,X as mt,Y as Oe,Z as pt,_ as ut,$ as ht,a0 as xt,a1 as gt,a2 as St,a3 as ft,a4 as _t,a5 as vt,a6 as bt,s as Ct,a7 as B,A as yt,g as wt,a8 as kt,a9 as D,aa as re}from"./AppEntry-yGjZDq3c.js";import{u as L}from"./useTranslation-CZJVCIH1.js";import{c as ee,u as jt}from"./useUrlParam-CZ4aw4md.js";import{R as Tt,u as Le,S as fe,a as Be,w as De,A as Nt}from"./warning-DpcLAoxX.js";import{I as _e}from"./AntdIcon-BKgxT62r.js";import{T as Fe}from"./index-34CVpSRX.js";import{S as H}from"./index-BQyCNz27.js";import{M as W}from"./index-CSwuRCeV.js";import{I as Mt}from"./index-CS8YAtyi.js";import{B as de}from"./button-COlcySkY.js";import{C as Ve}from"./index-DJwVDHAF.js";import{c as At}from"./index-CiW30IE2.js";import{Q as Pe}from"./index-DE_D2GJ6.js";import{h as Et}from"./html2canvas-pro.esm-DgAbkr8b.js";import{s as It}from"./sharepageLog-CPOT6QVS.js";import{l as Rt}from"./agentLogoTextEn-CC1FLgV-.js";import{S as Ft}from"./index-B92ElPs4.js";import"./tslib.es6-BO7bUXQ_.js";import"./debounce-qn1Id9XS.js";import"./isObjectLike-DQv7v4oa.js";import"./index-D4cn76_n.js";import"./index-D06cA49-.js";import"./useUserStore-CzLMwWtH.js";import"./icon_zhishi_search-VMy98n1a.js";import"./index-B0_gkfMG.js";import"./userAuth-Bzc-YaEz.js";import"./base64-Cs2W2fcZ.js";import"./index.module-Bi0Dxxte.js";import"./PulseLoader-BEbjbXk8.js";import"./useImageCropUpload-C40w0BUQ.js";import"./compressor.esm-C46f8uP2.js";import"./index-bS47I6pO.js";import"./index-DlDbTapt.js";import"./traceAndOrder-Ckos_Swc.js";import"./index-xBPjzTPJ.js";import"./utils-DBy4YQWF.js";import"./knowledge-B6Xt4n06.js";import"./v4-CtRu48qb.js";import"./useOrderIsExpired-C3lj0fcm.js";import"./utils-COfvzxEc.js";import"./index-CJrGXcrc.js";import"./github_opacity_0-CxQa6oab.js";import"./sparkutils-CzrLAKyB.js";import"./index-CzF7my_k.js";import"./context-DKhv_b6t.js";import"./Compact-BviLumD4.js";import"./motion-BwoXtl0z.js";import"./reactNode-CvZomqk2.js";import"./index-Cb4CfQq0.js";import"./zoom-DpNIHBsI.js";import"./dayjs.min-MSV7X6E-.js";import"./index-DnoH8i83.js";import"./ContextIsolator-hwtSycux.js";import"./ActionButton-DJ1XBOXE.js";import"./compact-item-5orumCwJ.js";import"./index-Cbb5YXZ-.js";import"./fade-DU7Y_kU8.js";import"./Skeleton-CRGI6EI_.js";import"./useLocale-Dmo9Agcu.js";import"./PurePanel-CKKM5xpM.js";import"./index-ByGsukvN.js";import"./collapse-BbEVqHco.js";import"./row-BXqHUWkn.js";import"./responsiveObserver-DyJXlrPc.js";import"./EditOutlined-DdmGLkPL.js";import"./Table-B8VxV0Ub.js";import"./styleChecker-Qlp7tQr6.js";import"./addEventListener-B4p1orND.js";import"./DownOutlined-Bedvisqk.js";import"./conductUtil-BjxLXQtP.js";import"./index-D8n5n2bd.js";import"./index-TUPY4PN5.js";import"./index-Bzc9CXj1.js";import"./RightOutlined-DlN6rwzX.js";import"./EllipsisOutlined-DtZ6Tilt.js";import"./Overflow-Dh_HYkSz.js";import"./index-ad3S-Ulj.js";import"./index-BSH15dlR.js";import"./useBreakpoint-Bpehexoc.js";import"./useForceUpdate-DvJ9yelE.js";import"./Pagination-C67t5xY0.js";import"./LeftOutlined-C7JmM6ZX.js";import"./SearchOutlined-D1PhykWn.js";import"./CaretDownOutlined-Dv3U9ShB.js";import"./index-CzMPZUYD.js";import"./CloseOutlined-D5mcFo44.js";import"./person-space-icon-BkLkzb60.js";import"./utils-BAxb0YWC.js";import"./CheckOutlined-DczzTUs8.js";import"./index-C-_ceSoJ.js";import"./PlusOutlined-ByZyTB3m.js";import"./index-Chjiymov.js";var Vt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"};function me(){return me=Object.assign?Object.assign.bind():function(s){for(var i=1;i<arguments.length;i++){var d=arguments[i];for(var t in d)Object.prototype.hasOwnProperty.call(d,t)&&(s[t]=d[t])}return s},me.apply(this,arguments)}const Ot=(s,i)=>
1a.createElement(_e,me({},s,{ref:i,icon:Vt})),Lt=a.forwardRef(Ot);var Bt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"};function pe(){return pe=Object.assign?Object.assign.bind():function(s){for(var i=1;i<arguments.length;i++){var d=arguments[i];for(var t in d)Object.prototype.hasOwnProperty.call(d,t)&&(s[t]=d[t])}return s},pe.apply(this,arguments)}const Dt=(s,i)=>a.createElement(_e,pe({},s,{ref:i,icon:Bt})),Pt=a.forwardRef(Dt);var zt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};function ue(){return ue=Object.assign?Object.assign.bind():function(s){for(var i=1;i<arguments.length;i++){var d=arguments[i];for(var t in d)Object.prototype.hasOwnProperty.call(d,t)&&(s[t]=d[t])}return s},ue.apply(this,arguments)}const Ut=(s,i)=>a.createElement(_e,ue({},s,{ref:i,icon:zt})),$t=a.forwardRef(Ut),Ht="_detailHeader_1pryn_6",Wt="_back_1pryn_15",qt="_spaceInfo_1pryn_22",Yt="_avatarContainer_1pryn_28",Gt="_avatar_1pryn_28",Kt="_avatarImage_1pryn_41",Qt="_infoContent_1pryn_53",Jt="_titleRow_1pryn_58",Xt="_title_1pryn_58",Zt="_editBtn_1pryn_76",ea="_roleTag_1pryn_84",ta="_description_1pryn_100",aa="_actions_1pryn_112",A={detailHeader:Ht,back:Wt,spaceInfo:qt,avatarContainer:Yt,avatar:Gt,avatarImage:Kt,infoContent:Qt,titleRow:Jt,title:Xt,editBtn:Zt,roleTag:ea,description:ta,actions:aa},na=({spaceInfo:s,onEditSpace:i,onShare:d,onAddMember:t})=>{const{t:n}=L(),x=ee(),{roleTextMap:_}=Y(),{goToSpaceManagement:p}=Z(x),f=a.useRef(null),b=k=>_[k]||k,w=[{key:"edit",text:"",icon:e.jsx(Tt,{}),type:"text",size:"small",tooltip:n("space.editSpaceInfo"),permission:{module:O.SPACE,operation:P.SPACE_SETTINGS},onClick:()=>i()}],j=[{key:"share",text:n("space.share"),icon:e.jsx(Lt,{}),type:"default",permission:{customCheck:()=>s.userRole===1||s.userRole===2},onClick:()=>d(),tooltip:n("space.shareSpace")},{key:"addMember",text:n("space.addMember"),icon:e.jsx(Pt,{}),type:"primary",permission:{module:O.SPACE,operation:P.ADD_MEMBERS},onClick:()=>t()}];return e.jsxs("div",{className:A.detailHeader,children:[e.jsx("div",{className:A.back,children:e.jsx("img",{src:ct,alt:"back",onClick:()=>p()})}),e.jsxs("div",{className:A.spaceInfo,children:[e.jsx("div",{className:A.avatarContainer,children:e.jsx("div",{className:A.avatar,children:e.jsx("img",{src:s.avatarUrl||st,alt:n("space.spaceAvatar"),className:A.avatarImage})})}),e.jsxs("div",{className:A.infoContent,ref:f,children:[e.jsxs("div",{className:A.titleRow,children:[e.jsx(Fe,{title:s.name,placement:"bottomLeft",children:e.jsx("h1",{className:A.title,children:s.name})}),e.jsx(he,{config:w[0],className:A.editBtn,style:{color:"#999"}}),e.jsx("span",{className:A.roleTag,children:b(Se(s.userRole))})]}),e.jsx(Fe,{title:s.description,placement:"bottomLeft",getPopupContainer:()=>f.current||document.body,overlayStyle:{maxWidth:"60vw",maxHeight:"calc(100vh - 180px)",overflow:"auto"},children:e.jsx("p",{className:A.description,children:s.description})})]})]}),e.jsx("div",{className:A.actions,children:e.jsx(X,{buttons:j,className:A.actionButtons})})]})},sa="_memberManagement_1qooz_1",oa="_memberTable_1qooz_4",ca="_usernameCell_1qooz_7",la="_roleText_1qooz_16",ra="_roleSelect_1qooz_20",q={memberManagement:sa,memberTable:oa,usernameCell:ca,roleText:la,roleSelect:ra},{Option:ia}=H,da=({spaceId:s,searchValue:i="",roleFilter:d="all"})=>{const{t}=L(),{user:n}=xe(),{roleTextMap:x,memberRoleOptions:_}=Y(),p=Le(),f=a.useRef(null),b=async c=>{try{const{current:S,pageSize:l,searchValue:m,roleFilter:y}=c,T=await rt({nickname:m||"",pageNum:S,pageSize:l,role:Number(it(y))});return{data:(T==null?void 0:T.records)||[],total:(T==null?void 0:T.total)||0,success:!0}}catch(S){return g.error((S==null?void 0:S.msg)||(S==null?void 0:S.desc)),{data:[],total:0,success:!1}}},w=(c,S)=>{W.confirm({title:t("space.confirmDelete"),content:t("space.confirmDeleteMember",{username:S}
1),okText:t("common.confirm"),cancelText:t("common.cancel"),onOk:async()=>{var l;try{await dt({uid:c}),(l=f.current)==null||l.reload(),g.success(t("space.deleteSuccess"))}catch(m){g.error((m==null?void 0:m.msg)||(m==null?void 0:m.desc))}}})},j=async(c,S)=>{var l;try{await lt({uid:c,role:Number(S)}),g.success(t("space.roleUpdateSuccess")),Number(c)===Number(n==null?void 0:n.uid)?window.location.reload():(l=f.current)==null||l.reload()}catch(m){g.error((m==null?void 0:m.msg)||(m==null?void 0:m.desc))}},k=a.useCallback(c=>x[Se(Number(c))]||c,[x]),u=c=>[{key:"delete",text:t("space.delete"),type:"link",size:"small",permission:{module:O.SPACE,operation:P.ADD_MEMBERS,customCheck:()=>!!(c.role!=Re&&(p!=null&&p.checks.canRemoveMembers(O.SPACE))&&!(p!=null&&p.checks.canDeleteResource(O.SPACE,`${c.uid}`)))},onClick:()=>w(c.uid,c.nickname)}],o=[{title:t("space.username"),dataIndex:"nickname",key:"nickname",render:(c,S)=>e.jsx("div",{className:q.usernameCell,children:e.jsx("span",{children:c})})},{title:t("space.role"),dataIndex:"role",key:"role",render:(c,S)=>c==Re||!(p!=null&&p.checks.hasModulePermission(O.SPACE,P.MODIFY_MEMBER_PERMISSIONS))?e.jsx("span",{className:q.roleText,children:k(c)}):e.jsx(H,{value:c,onChange:m=>j(S.uid,m),className:q.roleSelect,popupMatchSelectWidth:!1,children:_.map(m=>e.jsx(ia,{value:m.value,children:m.label},m.value))})},{title:t("space.joinTime"),dataIndex:"createTime",key:"createTime",render:c=>e.jsx("span",{className:q.createTime,children:c})}],h={title:t("space.operation"),width:200,getActionButtons:c=>u(c)};return e.jsx("div",{className:q.memberManagement,children:e.jsx(fe,{ref:f,queryData:b,columns:o,actionColumn:h,rowKey:"id",extraParams:{spaceId:s,searchValue:i,roleFilter:d},className:q.memberTable})})},ma="_invitationManagement_1cynr_1",pa="_invitationTable_1cynr_4",ua="_usernameCell_1cynr_7",ha="_joinTime_1cynr_16",Q={invitationManagement:ma,invitationTable:pa,usernameCell:ua,joinTime:ha},xa=({spaceId:s,searchValue:i="",statusFilter:d="all"})=>{const{t}=L(),n=a.useRef(null),{applyStatusTextMap:x}=Y(),_=async o=>{console.log("申请管理 API 请求参数:",{current:o.current,pageSize:o.pageSize,searchValue:o.searchValue,statusFilter:o.roleFilter});try{const{current:h,pageSize:c,searchValue:S,roleFilter:l}=o,m=await pt({pageNum:h,pageSize:c,nickname:S,status:l}),{records:y,total:T}=m;return{data:y,total:T,success:!0}}catch(h){return console.log(h,"------------- getApplyRecord ------------"),g.error((h==null?void 0:h.msg)||(h==null?void 0:h.desc)),{data:[],total:0,success:!1}}},p=o=>o?!0:(g.warning(t("common.applyIdNotExist")),!1),f=(o,h)=>{W.confirm({title:t("common.confirmReject"),content:t("common.confirmRejectUser"),okText:t("common.confirm"),cancelText:t("common.cancel"),onOk:async()=>{var c;try{if(!p(o))return;await ut({applyId:o}),g.success(t("common.rejectSuccess")),(c=n==null?void 0:n.current)==null||c.reload()}catch{g.error(t("common.rejectFailed"))}}})},b=(o,h)=>{W.confirm({title:t("common.confirmApprove"),content:t("common.confirmApproveApplication"),okText:t("common.confirm"),cancelText:t("common.cancel"),onOk:async()=>{var c;if(p(o))try{await ht({applyId:o}),g.success(t("common.approveSuccess")),(c=n==null?void 0:n.current)==null||c.reload()}catch{g.error(t("common.approveFailed"))}}})},w=a.useCallback(o=>{const h=mt[o];return e.jsx(Be,{theme:h,children:x[o]})},[x]),j=o=>o.status!==Number(Oe)?[]:[{key:"reject",text:t("common.reject"),type:"link",size:"small",permission:{module:O.SPACE,operation:P.APPLY_MANAGE},onClick:()=>f(o.id,o.applyNickname)},{key:"pass",text:t("common.approve"),type:"link",size:"small",permission:{module:O.SPACE,operation:P.APPLY_MANAGE},onClick:()=>b(o.id,o.applyNickname)}],k=[{title:t("common.username"),dataIndex:"applyNickname",key:"applyNickname",render:(o,h)=>e.jsx("div",{className:Q.usernameCell,children:e.jsx("span",{children:o})})},{title:t("common.applyTime"),dataIndex:"createTime",key:"createTime",render:o=>e.jsx("span",{className:Q.joinTime,children:o})},{title:t("common.applyStatus"),dataIndex:"status",key:"status",render:o=>w(o)}],u={title:t("common.action"),width:200,getActionButtons:o=>j(o)};return e.jsx("div",{className:Q.invitationManagement,children:e.jsx(fe,{ref:n,queryData:_,columns:k,actionColumn:u,rowKey:"id",extraParams:{spaceId:s,searchValue:i,roleFilter:d},className:Q.invitationTable})})},ga="_invitationManagement_1cynr_1",Sa="_invitationTable_1cynr_4",J={invitationManagement:ga,invitationTable:Sa},fa=a.forwardRef(({spaceId:s,searchValue:i="",statusFilter:d="all"},t)=>{const{t:n}=L(),x=a.useRef(null),{invitationStatusTextMap:_}=Y();a.useImperativeHandle(t,()=>({reload:()=>{var u;(u=x.current)==null||u.reload()}}));const p=async u=>{console.log("邀请管理 API 请求参数:",{current:u.current,pageSize:u.pageSize,searchValue:u.searchValue,statusFilter:u.roleFilter});try{const{current:o,pageSize:h,searchValue:c,roleFilter:S}=u,l=await gt({pageNum:o,pageSize:h,nickname:c,status:S}),{records:m,total:y}=l;return{data:m,total:y,success:!0}}catch(o){return g.error((o==null?void 0:o.msg)||(o==null?void 0:o.desc)),{data:[],total:0,success:!1}}},f=(u,o)=>{W.confirm({title:n("space.confirmRevoke"),content:n("space.confirmRevokeInvitation",{nickname:o}),okText:n("common.confirm"),cancelText:n("common.cancel"),onOk:async()=>{var h;try{await St({inviteId:u}),g.success(n("space.revokeSuccess"))}catch(c){g.error((c==null?void 0:c.msg)||(c==null?void 0:c.desc))}finally{(h=x==null?void 0:x.current)==null||h.reload()}}})},b=a.useCallback(u=>{const o=xt[u];return e.jsx(Be,{theme:o,children:_[u]})},[_]),w=u=>u.status!==Number(Oe)?[]:[{key:"recall",text:n("space.revoke"),type:"link",size:"small",permission:{module:O.SPACE,operation:P.INVITATION_MANAGE},onClick:()=>f(u.id,u.inviteeNickname)}
1],j=[{title:n("space.username"),dataIndex:"inviteeNickname",key:"inviteeNickname",render:(u,o)=>e.jsx("div",{className:J.inviteeNicknameCell,children:e.jsx("span",{children:u})})},{title:n("space.invitationStatus"),dataIndex:"status",key:"status",render:u=>b(u)},{title:n("space.joinTime"),dataIndex:"createTime",key:"createTime",render:u=>e.jsx("span",{className:J.createTime,children:u||"-"})}],k={title:n("space.operation"),width:200,getActionButtons:u=>w(u)};return e.jsx("div",{className:J.invitationManagement,children:e.jsx(fe,{ref:x,queryData:p,columns:j,actionColumn:k,rowKey:"id",extraParams:{spaceId:s,searchValue:i,roleFilter:d},className:J.invitationTable})})}),_a="_transferModal_41pwp_1",va="_modalContent_41pwp_9",ba="_warningText_41pwp_13",Ca="_formSection_41pwp_21",ya="_formLabel_41pwp_21",wa="_memberSelect_41pwp_29",ka="_memberOption_41pwp_37",ja="_memberIcon_41pwp_42",Ta="_memberName_41pwp_46",Na="_memberRole_41pwp_50",Ma="_modalFooter_41pwp_54",F={transferModal:_a,modalContent:va,warningText:ba,formSection:Ca,formLabel:ya,memberSelect:wa,memberOption:ka,memberIcon:ja,memberName:Ta,memberRole:Na,modalFooter:Ma},{Option:Aa}=H,Ea=({open:s,onClose:i,onSubmit:d,onSuccess:t})=>{const{t:n}=L(),[x,_]=a.useState(null),[p,f]=a.useState([]),[b,w]=a.useState(!1),{memberRoleOptions:j}=Y(),k=a.useMemo(()=>j.reduce((l,m)=>(l[m.value]=m.label,l),{}),[j]);a.useEffect(()=>{s&&u()},[s]);const u=async()=>{w(!0);try{const l=await ft();console.log(l,"------------ getEnterpriseSpaceMemberList -----------");const m=(l||[]).map(y=>{const{uid:T,nickname:C,role:N}=y;return{id:T,username:C,role:N}});f(m)}catch(l){g.error((l==null?void 0:l.msg)||(l==null?void 0:l.desc))}finally{w(!1)}},o=l=>{_(l)},h=async()=>{if(!x){g.warning(n("common.pleaseSelectMemberToTransfer"));return}try{const l=await _t({uid:x});console.log(l,"------------ transferSpace -----------"),g.success(n("common.transferSuccess")),t==null||t(),c()}catch(l){g.error((l==null?void 0:l.msg)||(l==null?void 0:l.desc))}},c=()=>{_(""),i()},S=[{key:"cancel",text:n("common.cancel"),type:"default",onClick:()=>c()},{key:"submit",text:n("common.confirm"),type:"primary",onClick:()=>h(),disabled:!x}];return e.jsxs(W,{title:n("common.transferSpaceOwnership"),open:s,onCancel:c,footer:null,width:500,className:F.transferModal,destroyOnClose:!0,centered:!0,maskClosable:!1,keyboard:!1,children:[e.jsxs("div",{className:F.modalContent,children:[e.jsx("div",{className:F.warningText,children:n("common.transferOwnershipWarning")}),e.jsxs("div",{className:F.formSection,children:[e.jsx("div",{className:F.formLabel,children:n("common.transferOwnershipTo")}),e.jsx(H,{placeholder:n("common.pleaseSelectMember"),value:x,onChange:o,className:F.memberSelect,loading:b,showSearch:!0,filterOption:(l,m)=>{var y;return(y=m==null?void 0:m.children)==null?void 0:y.toLowerCase().includes(l.toLowerCase())},children:p.map(l=>e.jsx(Aa,{value:l.id,children:e.jsxs("div",{className:F.memberOption,children:[e.jsx($t,{className:F.memberIcon}),e.jsx("span",{className:F.memberName,children:l.username}),e.jsxs("span",{className:F.memberRole,children:["(",k[l.role],")"]})]})},l.id))})]})]}),e.jsx("div",{className:F.modalFooter,children:e.jsx(X,{buttons:S,size:"large"})})]})},Ia="_deleteModal_w4a5v_1",Ra="_modalContent_w4a5v_1",Fa="_warningSection_w4a5v_4",Va="_warningIcon_w4a5v_10",Oa="_warningText_w4a5v_16",La="_formSection_w4a5v_21",Ba="_formLabel_w4a5v_21",Da="_codeInputSection_w4a5v_27",Pa="_codeInput_w4a5v_27",za="_sendCodeBtn_w4a5v_46",Ua="_modalFooter_w4a5v_60",V={deleteModal:Ia,modalContent:Ra,warningSection:Fa,warningIcon:Va,warningText:Oa,formSection:La,formLabel:Ba,codeInputSection:Da,codeInput:Pa,sendCodeBtn:za,modalFooter:Ua},$a=({open:s,onClose:i,onSubmit:d})=>{const{t}=L(),[n,x]=a.useState(""),[_,p]=a.useState(!1),[f,b]=a.useState(0),{user:w,mobile:j}=xe(),k=ee(),{sendCodeForDelete:u,deleteSpace:o,spaceId:h,deleteSpaceCb:c}=Z(k),S=()=>{x(""),b(0)},l=async()=>{p(!0);try{await u(),g.success(t("common.verificationCodeSent")),b(60);const C=setInterval(()=>{b(N=>N<=1?(clearInterval(C),0):N-1)},1e3)}catch(C){g.error((C==null?void 0:C.msg)||(C==null?void 0:C.desc)),S()}finally{p(!1)}},m=async()=>
1{if(!n.trim()){g.warning(t("common.pleaseEnterVerificationCode"));return}try{await o({spaceId:h,mobile:j,verifyCode:n.trim()}),g.success(t("common.deleteSpaceSuccess")),c()}catch(C){g.error((C==null?void 0:C.msg)||(C==null?void 0:C.desc)),S()}},y=()=>{x(""),b(0),i()},T=[{key:"cancel",text:t("common.cancel"),type:"default",onClick:()=>y()},{key:"submit",text:t("common.confirm"),type:"primary",onClick:()=>m(),disabled:!n.trim()}];return e.jsxs(W,{title:t("common.deleteSpace"),open:s,onCancel:y,footer:null,width:500,className:V.deleteModal,destroyOnClose:!0,centered:!0,maskClosable:!1,keyboard:!1,children:[e.jsxs("div",{className:V.modalContent,children:[e.jsxs("div",{className:V.warningSection,children:[e.jsx("div",{className:V.warningIcon,children:e.jsx("img",{src:De,alt:"warning"})}),e.jsx("div",{className:V.warningText,children:t("common.deleteSpaceWarning")})]}),e.jsxs("div",{className:V.formSection,children:[e.jsx("div",{className:V.formLabel,children:t("common.enterVerificationCodeForMobile",{mobile:w==null?void 0:w.mobile})}),e.jsxs("div",{className:V.codeInputSection,children:[e.jsx(Mt,{placeholder:t("common.pleaseEnterVerificationCode"),value:n,onChange:C=>{const N=C.target.value.replace(/\D/g,"");x(N)},className:V.codeInput,maxLength:6,type:"number"}),e.jsx(de,{type:"link",onClick:l,disabled:_||f>0,loading:_,className:V.sendCodeBtn,children:f>0?t("common.resendAfterSeconds",{seconds:f}):t("common.sendVerificationCode")})]})]})]}),e.jsx("div",{className:V.modalFooter,children:e.jsx(X,{buttons:T,size:"large"})})]})},Ha="_spaceSettings_2cb85_1",Wa="_settingsList_2cb85_1",qa="_settingCard_2cb85_6",Ya="_settingContent_2cb85_13",Ga="_settingInfo_2cb85_19",Ka="_settingTitle_2cb85_23",Qa="_settingDescription_2cb85_32",Ja="_transferBtn_2cb85_41",Xa="_deleteBtn_2cb85_48",E={spaceSettings:Ha,settingsList:Wa,settingCard:qa,settingContent:Ya,settingInfo:Ga,settingTitle:Ka,settingDescription:Qa,transferBtn:Ja,deleteBtn:Xa},Za="_leave_modal_12hst_1",en="_modalContent_12hst_1",tn="_warningIcon_12hst_7",an="_warningText_12hst_13",nn="_modalFooter_12hst_18",G={leave_modal:Za,modalContent:en,warningIcon:tn,warningText:an,modalFooter:nn},sn=({open:s,onClose:i,spaceInfo:d})=>{const t=ee(),{deleteSpaceCb:n}=Z(t),x=()=>{i()},_=()=>{vt().then(()=>{g.success("离开空间成功"),n(),i()}).catch(f=>{g.error((f==null?void 0:f.msg)||(f==null?void 0:f.desc))})},p=[{key:"cancel",text:"取消",type:"default",onClick:()=>x()},{key:"submit",text:"确认",type:"primary",onClick:()=>_()}];return e.jsxs(W,{title:"离开空间",open:s,onCancel:x,footer:null,width:500,className:G.leave_modal,destroyOnClose:!0,centered:!0,maskClosable:!1,keyboard:!1,children:[e.jsxs("div",{className:G.modalContent,children:[e.jsx("div",{className:G.warningIcon,children:e.jsx("img",{src:De,alt:"warning"})}),e.jsxs("div",{className:G.warningText,children:["确认离开 ",d==null?void 0:d.name," 吗?"]})]}),e.jsx("div",{className:G.modalFooter,children:e.jsx(X,{buttons:p,size:"large"})})]})},on=({spaceInfo:s,onRefresh:i})=>{const{t:d}=L(),{spaceType:t}=ge(),n=Le(),_=(C=>{const N=C===1;return{deleteSpace:d(N?"space.deleteSpace":"space.leaveSpace"),deleteDescription:d(N?"space.deleteSpaceWarning":"space.leaveSpaceWarning"),deleteButtonText:d(N?"space.deleteSpace":"space.leaveSpace")}})(s.userRole),[p,f]=a.useState(!1),[b,w]=a.useState(!1),[j,k]=a.useState(!1),u=a.useCallback(()=>{f(!0)},[]),o=a.useCallback(()=>{f(!1)},[]),h=a.useCallback(C=>{try{console.log("转让所有权:",C),g.success(d("space.transferOwnershipSuccess")),f(!1)}catch(N){g.error(d("space.transferOwnershipFailed")),console.error("转让所有权失败",N)}},[d]),c=a.useCallback(()=>{s.userRole===1?w(!0):k(!0)},[]),S=a.useCallback(()=>{w(!1)},[]),l=a.useCallback(()=>{k(!1)},[]),m=a.useCallback(C=>{console.log(C,"------------ handleDeleteModalSubmit -----------")},[]),y=a.useMemo(()=>t==="team"&&(n==null?void 0:n.checks.hasModulePermission(O.SPACE,P.SPACE_TRANSFER)),[t,n]),T=a.useMemo(()=>n==null?void 0:n.checks.hasModulePermission(O.SPACE,P.SPACE_DELETE),[t,n]);return e.jsxs("div",{className:E.spaceSettings,children:[e.jsxs("div",{className:E.settingsList,children:[y&&e.jsx(Ve,{className:E.settingCard,children:e.jsxs("div",{className:E.settingContent,children:[e.jsxs("div",{className:E.settingInfo,children:[e.jsx("h3",{className:E.settingTitle,children:d("space.transferSpaceOwnership")}),e.jsx("p",{className:E.settingDescription,children:d("space.transferOwnershipDescription")})]}),e.jsx(de,{type:"primary",onClick:u,className:E.transferBtn,children:d("space.transferSpace")})]})}),T&&e.jsx(Ve,{className:E.settingCard,children:e.jsxs("div",{className:E.settingContent,children:[e.jsxs("div",{className:E.settingInfo,children:[e.jsx("h3",{className:E.settingTitle,children:_.deleteSpace}),e.jsx("p",{className:E.settingDescription,children:_.deleteDescription})]}),e.jsx(de,{danger:!0,type:"primary",onClick:c,className:E.deleteBtn,children:_.deleteButtonText})]})})]}),e.jsx(Ea,{open:p,onClose:o,onSubmit:h,onSuccess:i}),e.jsx($a,{open:b,onClose:S,onSubmit:m}),e.jsx(sn,{open:j,onClose:l,spaceInfo:s})]})},cn="_spaceDetail_18l44_5",ln="_content_18l44_15",rn="_customTabs_18l44_21",dn="_tabActions_18l44_25",mn="_filterSelect_18l44_30",pn="_loadingState_18l44_46",un="_loadingContent_18l44_56",hn="_loadingSkeleton_18l44_69",xn="_skeletonHeader_18l44_73",gn="_skeletonContent_18l44_81",M={spaceDetail:cn,content:ln,customTabs:rn,tabActions:dn,filterSelect:mn,loadingState:pn,loadingContent:un,loadingSkeleton:hn,skeletonHeader:xn,skeletonContent:gn},ze=({avatarUrl:s,ownerName:i,ownerAvatar:d,name:t,description:n,isCanvas:x=!1})=>{const{t:_}=L();return e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",fontFamily:"PingFang-Sim",padding:"16px",borderRadius:"10px",backgroundColor:"#F8F9FF"},children:[e.jsxs("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[e.jsx("img",{src:s,alt:"",style:{width:"30px",height:"30px",borderRadius:"50%"}}),e.jsx("div",{style:{fontSize:"16px",fontWeight:500,letterSpacing:"normal",color:"#333333",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i})]}),e.jsx("div",{style:{width:"100%",fontSize:"14px",fontWeight:500,lineHeight:"normal",letterSpacing:"normal",color:"#7F7F7F",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",textAlign:"center"},children:_("space.inviteToJoinWorkspace")}),e.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",gap:"10px",marginTop:"8px"},children:[e.jsx("img",{src:s,alt:"",style:{width:"96px",height:"96px",borderRadius:"21px"}}),e.jsx("div",{style:{width:"100%",fontSize:"18px",fontWeight:500,lineHeight:"normal",letterSpacing:"normal",color:"#333333",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:"center"},children:t}),e.jsx("div",{style:{width:"100%",fontSize:"12px",fontWeight:500,lineHeight:"18px",textAlign:"center",letterSpacing:"normal",color:"#7F7F7F",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},children:n}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[e.jsx("img",{src:d,alt:"",style:{width:"28px",height:"28px",borderRadius:"50%"}}),e.jsx("div",{style:{maxWidth:"240px",fontSize:"16px",fontWeight:500,letterSpacing:"normal",color:"#333",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i}),e.jsx("div",{style:{padding:"0 12px",height:"24px",lineHeight:"24px",fontSize:"12px",fontWeight:"normal",letterSpacing:"normal",color:"#275EFF",background:"#E4EAFF",borderRadius:"6px",boxSizing:"border-box",fontFamily:x?"Microsoft YaHei":"PingFang-Sim"},children:_("spaceManagement.owner")})]})]})]})},Sn="_shareSpaceModal_1ckk8_1",fn="_modalContent_1ckk8_15",_n="_shareSwitch_1ckk8_19",vn="_flexBetween_1ckk8_25",bn="_desc_1ckk8_29",Cn="_inviteInfo_1ckk8_44",yn="_linkBox_1ckk8_49",wn="_qrcode_1ckk8_55",kn="_link_1ckk8_49",jn="_linkUrl_1ckk8_79",Tn="_linkUrlText_1ckk8_94",I={shareSpaceModal:Sn,modalContent:fn,shareSwitch:_n,flexBetween:vn,desc:bn,inviteInfo:Cn,linkBox:yn,qrcode:wn,link:kn,linkUrl:jn,linkUrlText:Tn},Nn=({avatarUrl:s,ownerName:i,ownerAvatar:d,name:t,description:n,qrCodeUrl:x,expiredTime:_})=>{const{t:p,i18n:f}=L(),b=a.useRef(null),[w,j]=a.useState(!1),k=async(o,h="qrcode.png",c)=>{g.loading(c("shareModal.shareNewModal.savingImage"),0),j(!0);try{const l=(await Et(o,{backgroundColor:null,scale:2,useCORS:!0,logging:!1})).toDataURL("image/png"),m=document.createElement("a");m.href=l,m.download=h,document.body.appendChild(m),m.click(),document.body.removeChild(m),g.destroy(),g.success(c("shareModal.shareNewModal.saveSuccess",{fileName:h}))}catch(S){console.log(S,"download code "),g.destroy(),g.error(c("shareModal.shareNewModal.saveError",{errorMessage:S.message}))}finally{j(!1)}},u=async()=>
1{if(!b.current){g.warning("二维码生成中,请稍候...");return}await k(b.current,`${t||"qrCode"}.png`,p)};return e.jsxs("div",{children:[e.jsx(he,{config:{key:"copy",text:p("space.saveAndShare"),type:"primary",onClick:()=>{u()},disabled:w},size:"small"}),e.jsxs("div",{ref:b,style:{width:"460px",padding:"40px 40px 30px",position:"fixed",top:"-9999px",left:"-9999px",background:"linear-gradient(180deg, #C8C3FF 0%, #FAF9FF 99%)"},children:[e.jsxs("div",{style:{padding:"4px",borderRadius:"16px",background:"#F8F9FF",boxShadow:"0px 4px 10px 0px rgba(118, 106, 235, 0.1)"},children:[e.jsx(ze,{avatarUrl:s,ownerName:i,ownerAvatar:d,name:t,description:n,isCanvas:!0}),e.jsx("div",{style:{height:1,background:"#d8d8d8",margin:"0 20px"}}),e.jsxs("div",{style:{height:"114px",padding:"20px",display:"flex",alignItems:"flex-end",justifyContent:"space-between",fontFamily:"Source Han Sans",fontSize:"12px",fontWeight:"normal",lineHeight:"normal",letterSpacing:"normal",color:"#9E9E9E"},children:[e.jsxs("div",{children:[p("space.scanToJoinSharedSpace"),e.jsx("br",{}),p("space.qrcodeExpiredTime",{expired:_})]}),e.jsx("div",{children:x&&e.jsx(Pe,{value:x,size:70})})]})]}),e.jsx("div",{style:{marginTop:"30px",display:"flex",justifyContent:"center"},children:e.jsx("img",{src:f.language==="zh"?It:Rt,alt:"shareLog",style:{height:"25px",width:"auto"}})})]})]})},Mn=({open:s,setOpen:i,onClose:d,spaceInfo:t})=>{const{t:n}=L(),{shareStatus:x,setShareStatus:_}=ge(),[p,f]=a.useState(null),[b,w]=a.useState(null),j=a.useMemo(()=>`${n("space.qrcodeExpiredTime",{expired:b})} 
2\r 👉🏻${p}`,[b,p,n]),k=a.useCallback(async()=>{try{const{code:h,expiredTime:c}=await bt(x);f(h?`${window.location.origin}/sharepage?code=${h}`:null),w(c)}catch(h){console.log(h,"获取分享链接")}},[x]),u=a.useCallback(h=>{console.log(h,"分享开关"),_(h),h||i(!1)},[_,i,n]),o=a.useCallback(()=>{if(!p)return g.warning(n("space.copyLinkFailed"));At({text:p||"",successText:n("space.copyLinkSuccess")})},[p,n]);return a.useEffect(()=>{k()},[x]),e.jsx(W,{open:s,onCancel:d,centered:!0,width:460,title:n("space.shareSpace"),footer:null,maskClosable:!1,keyboard:!1,className:I.shareSpaceModal,children:e.jsxs("div",{className:I.modalContent,children:[e.jsx(ze,{avatarUrl:t.avatarUrl,ownerName:t.ownerName,ownerAvatar:t.ownerAvatar,name:t.name,description:t.description}),e.jsxs("div",{className:I.shareSwitch,children:[e.jsxs("div",{className:I.flexBetween,children:[n("space.shareLink"),e.jsx(Ft,{className:I.customSwitch,value:x,onChange:u})]}),e.jsx("div",{className:I.desc,children:n("space.shareTips")})]}),x&&e.jsxs("div",{className:I.inviteInfo,children:[e.jsxs("div",{className:Ie(I.linkBox,I.link),children:[e.jsxs("div",{className:I.linkUrl,title:j,children:[n("space.inviteLink",{expired:b}),e.jsx("br",{}),e.jsx("div",{className:I.linkUrlText,children:e.jsxs("div",{children:["👉🏻",p]})})]}),e.jsx(he,{config:{key:"copy",text:n("space.copyLink"),type:"primary",onClick:o},size:"small"})]}),e.jsxs("div",{className:Ie(I.qrcode,I.linkBox),children:[p&&e.jsx(Pe,{value:p,size:70}),e.jsx(Nn,{qrCodeUrl:p,expiredTime:b||"",avatarUrl:t.avatarUrl,ownerName:t.ownerName,ownerAvatar:t.ownerAvatar,name:t.name,description:t.description})]})]})]})})},{Option:ie}=H,wo=()=>{const{t:s}=L(),{spaceId:i}=jt(),d=ee(),{tabOptions:t,roleOptions:n,statusOptions:x,statusOptionsApply:_,messages:p}=Y(),{setUserRole:f}=xe(),{enterpriseId:b,spaceType:w,setSpaceStore:j}=ge(),{isTeamSpace:k,deleteSpaceCb:u,handleTeamSwitch:o,switchToPersonal:h,getLastVisitSpace:c}=Z(d),{isTeamSpaceEmpty:S}=Ct(),[l,m]=a.useState(B.TAB),[y,T]=a.useState(null),[C,N]=a.useState(!0),ve=a.useRef(null),[z,te]=a.useState({inputValue:B.SEARCH_VALUE,searchValue:B.SEARCH_VALUE,filterValue:B.ROLE_FILTER}),[U,ae]=a.useState({inputValue:B.SEARCH_VALUE,searchValue:B.SEARCH_VALUE,filterValue:B.STATUS_FILTER_APPLY}),[$,ne]=a.useState({inputValue:B.SEARCH_VALUE,searchValue:B.SEARCH_VALUE,filterValue:B.STATUS_FILTER}),[Ue,se]=a.useState(!1),[$e,be]=a.useState(!1),[He,oe]=a.useState(!1),{run:Ce}=ce(r=>{te(v=>({...v,searchValue:r}))},{wait:re}),{run:ye}=ce(r=>{ae(v=>({...v,searchValue:r}))},{wait:re}),{run:we}=ce(r=>{ne(v=>({...v,searchValue:r}))},{wait:re}),We=a.useCallback(async r=>{const{enterpriseId:v}=r;(k()&&!v||v&&!k())&&(await yt(i),j({enterpriseId:v,spaceType:v?"team":"personal"}),setTimeout(()=>{c()}))},[b,o,h]),K=a.useCallback(async()=>
2{if(!i){N(!1);return}j({spaceId:i});try{N(!0);const r=await wt();We(r),T(r),f(w,Se(r==null?void 0:r.userRole,k()))}catch(r){console.error(s("common.loadSpaceInfoFailed"),r),g.error((r==null?void 0:r.msg)||(r==null?void 0:r.desc)),u()}finally{N(!1)}},[i]),qe=a.useCallback(()=>{S&&o()},[]);a.useEffect(()=>{K(),qe()},[K]);const Ye=a.useCallback(r=>{m(r)},[]),ke=a.useCallback(r=>{const v=r.target.value;te(R=>({...R,inputValue:v})),Ce(v)},[Ce]),je=a.useCallback(r=>{const v=r.target.value;ae(R=>({...R,inputValue:v})),ye(v)},[ye]),Te=a.useCallback(r=>{const v=r.target.value;ne(R=>({...R,inputValue:v})),we(v)},[we]),Ne=a.useCallback(r=>{te(v=>({...v,filterValue:r}))},[]),Me=a.useCallback(r=>{console.log(r,"================= handleApplyStatusFilterChange ==========="),ae(v=>({...v,filterValue:r}))},[]),Ae=a.useCallback(r=>{ne(v=>({...v,filterValue:r}))},[]),Ge=a.useCallback(()=>{se(!0)},[]),Ke=a.useCallback(()=>{oe(!0)},[]),Qe=a.useCallback(()=>{oe(!1)},[]),Je=a.useCallback(()=>{be(!0)},[]),Xe=a.useCallback(()=>{be(!1)},[]),Ze=a.useCallback(()=>{se(!1)},[]),et=a.useCallback(async r=>{var v;try{const R=(r||[]).map(Ee=>({uid:Ee.uid,role:Ee.role}));await kt(R),g.success(s("common.inviteSuccess")),se(!1),(v=ve.current)==null||v.reload()}catch(R){g.error((R==null?void 0:R.msg)||p.ERROR.MEMBER_ADD)}},[s,p]),tt=a.useMemo(()=>{if(!y)return null;switch(l){case D.MEMBERS:return e.jsx(da,{spaceId:y.id,searchValue:z.searchValue,roleFilter:z.filterValue});case D.APPLY:return e.jsx(xa,{spaceId:y.id,searchValue:U.searchValue,statusFilter:U.filterValue});case D.INVITATIONS:return e.jsx(fa,{ref:ve,spaceId:y.id,searchValue:$.searchValue,statusFilter:$.filterValue});case D.SETTINGS:return e.jsx(on,{spaceInfo:y,onRefresh:K});default:return null}},[l,y,z.searchValue,z.filterValue,U.searchValue,U.filterValue,$.searchValue,$.filterValue]),at=a.useMemo(()=>{switch(l){case D.MEMBERS:return e.jsxs("div",{className:M.tabActions,children:[e.jsx(H,{value:z.filterValue,onChange:Ne,className:M.filterSelect,placeholder:s("common.selectRole"),children:n.map(r=>e.jsx(ie,{value:r.value,children:r.label},r.value))}),e.jsx(le,{style:{borderColor:"#E4EAFF"},value:z.inputValue,onChange:ke,placeholder:s("common.pleaseEnterUsername")})]},D.MEMBERS);case D.APPLY:return e.jsxs("div",{className:M.tabActions,children:[e.jsx(H,{value:U.filterValue,onChange:Me,className:M.filterSelect,placeholder:s("common.selectStatus"),children:_.map(r=>e.jsx(ie,{value:r.value,children:r.label},r.value))}),e.jsx(le,{style:{borderColor:"#E4EAFF"},value:U.inputValue,onChange:je,placeholder:s("common.pleaseEnterUsername")})]},D.APPLY);case D.INVITATIONS:return e.jsxs("div",{className:M.tabActions,children:[e.jsx(H,{value:$.filterValue,onChange:Ae,className:M.filterSelect,placeholder:s("common.selectStatus"),children:x.map(r=>e.jsx(ie,{value:r.value,children:r.label},r.value))}),e.jsx(le,{style:{borderColor:"#E4EAFF"},value:$.inputValue,onChange:Te,placeholder:s("common.pleaseEnterUsername")})]},D.INVITATIONS);default:return null}},[l,z.filterValue,z.inputValue,U.filterValue,U.inputValue,$.filterValue,$.inputValue,n,x,_,Ne,ke,je,Me,Ae,Te,s]);return C?e.jsx("div",{className:M.loadingState,children:e.jsx("div",{className:M.loadingContent,children:e.jsxs("div",{className:M.loadingSkeleton,children:[e.jsx("div",{className:M.skeletonHeader}),e.jsx("div",{className:M.skeletonContent})]})})}):y?e.jsxs("div",{className:M.spaceDetail,children:[e.jsx(na,{spaceInfo:y,onEditSpace:Je,onShare:Ke,onAddMember:Ge}),e.jsx("div",{className:M.content,children:e.jsx(nt,{options:t,activeKey:l,onChange:Ye,className:M.customTabs,tabContent:tt,children:at})}),e.jsx(Nt,{inviteType:"space",open:Ue,onClose:Ze,onSubmit:et}),e.jsx(ot,{open:$e,mode:"edit",initialData:{...y},onClose:Xe,onSuccess:K}),e.jsx(Mn,{open:He,setOpen:oe,onClose:Qe,spaceInfo:y})]}):e.jsx("div",{className:M.spaceDetail})};export{wo as default};

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.