PageSourceSearch

https://www.copus.io/assets/index-CouU3t31.js

js copus.io collected 2026-09-24 13:37:25 UTC 7,182 bytes, 1 lines download raw bytes

1var G=Object.defineProperty;var y=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var I=(n,a,t)=>a in n?G(n,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[a]=t,M=(n,a)=>{for(var t in a||(a={}))J.call(a,t)&&I(n,t,a[t]);if(y)for(var t of y(a))K.call(a,t)&&I(n,t,a[t]);return n};import{u as ee,O as se,P as E,Q as L,j as e,T as te,W as ae,z as re,I as ne,X as le,Y as b,Z as k,$ as D,a0 as T,a1 as z,a2 as R}from"./index-7UG5XKey.js";import{r}from"./router-vendor-Dd05clGk.js";import{C as ce,S as U}from"./index-C1AeSets.js";import{u as ie}from"./gnosis-Y56LN66M-ChXDl1TK.js";import{S as oe,I as xe,U as P}from"./index-CElXVOAI.js";const A=n=>r.createElement("svg",M({width:14,height:12,viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("path",{d:"M4.77 5.333c.534 0 1.056-.156 1.5-.45.444-.292.79-.709.994-1.196A2.636 2.636 0 0 0 6.68.781 2.731 2.731 0 0 0 3.737.203a2.693 2.693 0 0 0-1.212.982 2.643 2.643 0 0 0 .336 3.367c.506.5 1.193.781 1.909.781zM10.168 6.667c.4 0 .792-.117 1.125-.337.333-.22.593-.532.746-.898a1.978 1.978 0 0 0-.439-2.18 2.049 2.049 0 0 0-2.207-.434 2.02 2.02 0 0 0-.908.738 1.982 1.982 0 0 0 .252 2.525c.38.375.894.586 1.431.586zM12.87 11.333a.68.68 0 0 0 .476-.195.662.662 0 0 0 .198-.471c0-.623-.178-1.234-.512-1.762a3.361 3.361 0 0 0-1.378-1.229 3.412 3.412 0 0 0-3.55.357 4.744 4.744 0 0 0-2.418-1.271 4.78 4.78 0 0 0-2.726.267A4.713 4.713 0 0 0 .842 8.745a4.626 4.626 0 0 0-.798 2.588c0 .177.071.347.198.472A.68.68 0 0 0 .719 12h8.1a.68.68 0 0 0 .477-.195.663.663 0 0 0 .198-.472",fill:"#5E5E5E"}));function me({isFirst:n,keyword:a}){var w;const{t}=ee(),v=se(),[O,o]=r.useState(!1),[F,d]=r.useState("accepted"),[N,x]=r.useState(!1),[V,g]=r.useState(!1),[l,p]=r.useState(),h=()=>{o(!1),x(!1),g(!1)};r.useEffect(()=>{const s=S=>{if((S==null?void 0:S.detail)===2){x(!1),d("tags"),o(!0);return}o(!1),x(!0)},i=()=>{x(!1),d("tags"),o(!0)};return E("gotoSpaceSetting",s),E("gotoSpaceTagSetting",i),()=>{L("gotoSpaceSetting",s),L("gotoSpaceTagSetting",i)}},[]);const W=r.useRef(null),[u,q]=r.useState([]),{data:c,size:f,isLoading:B,total:H,setSize:j,error:Q}=ie({pageSize:8,keyword:a||""}),X=!c&&!Q||f>0&&c&&typeof c[f-1]>"u",C=((w=c==null?void 0:c[0])==null?void 0:w.length)===0,m=C||u.length===H,Y=()=>{m||j(f+1)};if(r.useEffect(()=>
1{c&&q([].concat(...c))},[c]),r.useEffect(()=>{j(1)},[n,j]),B)return e.jsx(te,{});return e.jsx(e.Fragment,{children:C?ae():Z()});function Z(){return e.jsxs("div",{className:"flex flex-col h-full ",children:[e.jsxs("div",{className:"overflow-y-auto w-full",style:{scrollbarWidth:"none"},id:"scrollableCreatedSpacesDiv",ref:W,children:[e.jsx(ne,{dataLength:u.length,next:Y,hasMore:!m,loader:e.jsx("div",{}),scrollableTarget:"scrollableCreatedSpacesDiv",className:"w-full",children:u.map((s,i)=>le()?$(s):_(s))}),u.length>0&&re(X,m,j,f,t)]}),O&&e.jsx(b,{unifiedSize:!0,handleCancelCallback:h,children:e.jsx(ce,{subject:{type:"SPACE",spaceId:l==null?void 0:l.namespace},initialTab:F})}),N&&e.jsx(b,{unifiedSize:!0,open:N,handleCancelCallback:h,title:t("clientUI.spaceSetting.name"),mobileFullscreen:!0,children:e.jsx(oe,{spaceId:l==null?void 0:l.namespace})}),V&&e.jsx(b,{unifiedSize:!0,className:"invite-members-modal",handleCancelCallback:h,children:e.jsx(xe,{spaceId:l==null?void 0:l.namespace})})]})}function _(s){return e.jsxs("div",{className:"flex justify-between pl-[20px] border-b-[1px] border-[#e0e0e0] border-solid hover:bg-[#eee]",children:[e.jsxs("div",{onClick:()=>{v.push("/space/"+s.namespace)},className:"w-[360px] flex gap-[10px] items-center py-[30px] cursor-pointer",children:[k(s.logoUrl,s.title,70,"text-[40px]"),e.jsxs("div",{children:[e.jsx("div",{className:"flex  items-center w-full mb-[10px]",children:e.jsx("span",{className:"text-[20px] line-clamp-1 text-left font-medium text-[#231f20] leading-[23px]",children:s==null?void 0:s.title})}),e.jsxs("div",{className:"flex  items-center gap-[15px] text-[14px] text-[#696969]",children:[e.jsxs("div",{className:"flex items-center justify-center gap-[5px] ",children:[e.jsx(A,{className:"w-[15px] h-[17px]"}),e.jsx("span",{children:(s==null?void 0:s.userCount)||0})]}),e.jsxs("div",{className:"flex items-center justify-center gap-[5px]",children:[e.jsx(T,{className:"w-[15px] h-[17px]"}),D((s==null?void 0:s.downstreamCount)||0,0)]})]})]})]}),e.jsxs("div",{className:"gap-[10px]  flex justify-center  items-center",children:[e.jsx("div",{onClick:()=>{p(s),d("accepted"),o(!0)},className:"flex justify-center items-center cursor-pointer",children:e.jsxs("div",{className:"relative gap-[10px] py-[5px] px-[10px] rounded-[50px] border border-[#696969] border-solid flex justify-center items-center",children:[e.jsx(U,{}),e.jsxs("span",{className:"relative",children:[t("clientUI.curatorCenter.name"),e.jsx(P,{spaceId:s.namespace})]})]})}),e.jsx("div",{onClick:()=>{p(s),g(!0)},className:"cursor-pointer  flex w-[35px] h-[35px] items-center justify-center border-[1px] rounded-full",children:e.jsx(z,{})}),e.jsx("div",{onClick:()=>{p(s),x(!0)},className:"cursor-pointer  flex w-[35px] h-[35px] items-center justify-center border-[1px] rounded-full",children:e.jsx(R,{})})]})]},s.id)}function $(s){return e.jsx("div",{className:"pl-[20px] border-b-[1px] border-[#e0e0e0] border-solid hover:bg-[#eee]",children:e.jsxs("div",{onClick:()=>{v.push("/space/"+s.namespace)},className:"w-[100%]  flex gap-[10px] items-center py-[30px] cursor-pointer",children:[k(s.logoUrl,s.title,70,"text-[40px]"),e.jsxs("div",{className:"flex gap-[2px] flex-col",children:[e.jsx("div",{className:"flex items-center w-full",children:e.jsx("span",{className:"text-[20px] line-clamp-1 text-left font-medium text-[#231f20] leading-[23px]",children:s==null?void 0:s.title})}),e.jsxs("div",{className:"flex  items-center gap-[15px] text-[12px] text-[#696969]",children:[e.jsxs("div",{className:"flex items-center justify-center gap-[5px] ",children:[e.jsx(A,{className:"w-[15px] h-[17px]"}),e.jsx("span",{children:(s==null?void 0:s.userCount)||0})]}),e.jsxs("div",{className:"flex items-center justify-center gap-[5px]",children:[e.jsx(T,{className:"w-[15px] h-[17px]"}),D((s==null?void 0:s.downstreamCount)||0,0)]})]}),e.jsxs("div",{className:"gap-[10px]  flex justify-center  items-center",children:[e.jsx("div",{onClick:()=>{p(s),d("accepted"),o(!0)},className:"flex justify-center items-center cursor-pointer",children:e.jsxs("div",{className:"relative gap-[10px] py-[5px] px-[10px] rounded-[50px] border border-[#696969] border-solid flex justify-center items-center",children:[e.jsx(U,{}),e.jsxs("span",{className:"relative",children:[t("clientUI.curatorCenter.name"),e.jsx(P,{spaceId:s.namespace})]})]})}),e.jsx("div",{onClick:i=>{i.stopPropagation(),p(s),g(!0)},className:"cursor-pointer  flex w-[35px] h-[35px] items-center justify-center border-[1px] border-[#484848] border-solid rounded-full",children:e.jsx(z,{})}),e.jsx("div",{onClick:i=>{i.stopPropagation(),p(s),x(!0)},className:"cursor-pointer  flex w-[35px] h-[35px] items-center justify-center border-[1px] border-[#484848] border-solid rounded-full",children:e.jsx(R,{})})]})]})]})},s.id)}}export{me as M,A as S};

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.