3 lines
5.8 KiB
JavaScript
3 lines
5.8 KiB
JavaScript
import{r,j as e,w as o,T as i,u as n,t as l}from"./main-CiAhdYQG.js";import{I as u}from"./computer-Cx9wZ7Nf.js";import{H as f}from"./Heading-zTQC9Kqs.js";import{V as w,a}from"./VisualListItem-Dd-weqBc.js";import{S as g}from"./Separator-CVNE-7yB.js";function m(s,t){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",ref:t,...s,children:e.jsx("path",{fillRule:"evenodd",d:"m12 4.236-6 3V12c0 5.156 4.239 7.254 6 7.898 1.761-.644 6-2.742 6-7.898V7.236zm-.894-1.789a2 2 0 0 1 1.788 0l6 3A2 2 0 0 1 20 7.236V12c0 6.742-5.773 9.246-7.51 9.846-.32.111-.66.111-.98 0C9.774 21.246 4 18.743 4 12V7.236a2 2 0 0 1 1.106-1.789z",clipRule:"evenodd"})})}m.displayName="AdminIcon";const j=r.forwardRef(m);function d(s,t){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",ref:t,...s,children:e.jsx("path",{d:"m1.5 21.25 1.45-4.95a10.2 10.2 0 0 1-.712-2.1A10.2 10.2 0 0 1 2 12q0-2.075.788-3.9a10.1 10.1 0 0 1 2.137-3.175q1.35-1.35 3.175-2.137A9.7 9.7 0 0 1 12 2q2.075 0 3.9.788a10.1 10.1 0 0 1 3.175 2.137q1.35 1.35 2.137 3.175A9.7 9.7 0 0 1 22 12a9.7 9.7 0 0 1-.788 3.9 10.1 10.1 0 0 1-2.137 3.175q-1.35 1.35-3.175 2.137A9.7 9.7 0 0 1 12 22q-1.125 0-2.2-.238a10.2 10.2 0 0 1-2.1-.712L2.75 22.5a.94.94 0 0 1-1-.25.94.94 0 0 1-.25-1m2.45-1.2 3.2-.95a1 1 0 0 1 .275-.062q.15-.013.275-.013.225 0 .438.038.212.036.412.137a7.4 7.4 0 0 0 1.675.6Q11.1 20 12 20q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4 6.325 6.325 4 12q0 .9.2 1.775t.6 1.675q.176.325.188.688t-.088.712z"})})}d.displayName="ChatIcon";const I=r.forwardRef(d);function x(s,t){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",ref:t,...s,children:e.jsx("path",{d:"m8.566 17-.944 4.094q-.086.406-.372.656t-.687.25q-.543 0-.887-.469a1.18 1.18 0 0 1-.2-1.031l.801-3.5H3.158q-.572 0-.916-.484a1.27 1.27 0 0 1-.2-1.078 1.12 1.12 0 0 1 1.116-.938H6.85l1.145-5h-3.12q-.57 0-.915-.484a1.27 1.27 0 0 1-.2-1.078A1.12 1.12 0 0 1 4.875 7h3.691l.945-4.094q.085-.406.372-.656.286-.25.686-.25.544 0 .887.469.345.468.2 1.031l-.8 3.5h4.578l.944-4.094q.085-.406.372-.656.286-.25.687-.25.543 0 .887.469t.2 1.031L17.723 7h3.119q.573 0 .916.484.343.485.2 1.079a1.12 1.12 0 0 1-1.116.937H17.15l-1.145 5h3.12q.57 0 .915.484.343.485.2 1.079a1.12 1.12 0 0 1-1.116.937h-3.691l-.944 4.094q-.087.406-.373.656t-.686.25q-.544 0-.887-.469a1.18 1.18 0 0 1-.2-1.031l.8-3.5zm.573-2.5h4.578l1.144-5h-4.578z"})})}x.displayName="RoomIcon";const q=r.forwardRef(x);function h(s,t){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",ref:t,...s,children:e.jsx("path",{fillRule:"evenodd",d:"m5.07 20.965 16.141-8.07a1 1 0 0 0 0-1.79l-16.14-8.07c-.785-.392-1.658.342-1.406 1.182l2.249 7.496a1 1 0 0 1 0 .574l-2.249 7.496c-.252.84.621 1.574 1.405 1.182M6.246 5.859 18.528 12 6.246 18.141 7.788 13h4.462a1 1 0 1 0 0-2H7.788z",clipRule:"evenodd"})})}h.displayName="SendIcon";const v=r.forwardRef(h);function p(s,t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",ref:t,...s,children:[e.jsx("path",{d:"M9.175 13.825Q10.35 15 12 15t2.825-1.175T16 11t-1.175-2.825T12 7 9.175 8.175 8 11t1.175 2.825m4.237-1.412A1.93 1.93 0 0 1 12 13q-.825 0-1.412-.588A1.93 1.93 0 0 1 10 11q0-.825.588-1.412A1.93 1.93 0 0 1 12 9q.825 0 1.412.588Q14 10.175 14 11t-.588 1.412"}),e.jsx("path",{d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10m-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0"}),e.jsx("path",{d:"M16.23 18.792a13 13 0 0 0-1.455-.455 11.6 11.6 0 0 0-5.55 0q-.73.18-1.455.455a8 8 0 0 1-1.729-1.454q1.336-.618 2.709-.95A13.8 13.8 0 0 1 12 16q1.65 0 3.25.387 1.373.333 2.709.95a8 8 0 0 1-1.73 1.455"})]})}p.displayName="UserProfileIcon";const S=r.forwardRef(p),A=()=>{const{t:s}=n();return e.jsx(a,{Icon:S,children:s("mas.scope.view_profile")})},N=()=>{const{t:s}=n();return e.jsx(a,{Icon:l,children:s("mas.scope.edit_profile")})},R=()=>{const{t:s}=n();return e.jsx(a,{Icon:u,children:s("mas.scope.manage_sessions")})},y=()=>{const{t:s}=n();return e.jsx(a,{Icon:I,children:s("mas.scope.view_messages")})},C=()=>{const{t:s}=n();return e.jsx(a,{Icon:v,children:s("mas.scope.send_messages")})},V=()=>{const{t:s}=n();return e.jsx(a,{Icon:q,destructive:!0,children:s("mas.scope.synapse_admin")})},z=()=>{const{t:s}=n();return e.jsx(a,{Icon:j,destructive:!0,children:s("mas.scope.mas_admin")})},M=({scope:s})=>e.jsx(a,{Icon:l,children:s}),D=({scope:s})=>{if(s.startsWith("urn:matrix:org.matrix.msc2967.client:device:"))return null;switch(s){case"openid":return e.jsx(A,{});case"urn:mas:graphql:*":return e.jsxs(e.Fragment,{children:[e.jsx(N,{}),e.jsx(R,{})]});case"urn:matrix:org.matrix.msc2967.client:api:*":return e.jsxs(e.Fragment,{children:[e.jsx(y,{}),e.jsx(C,{})]});case"urn:synapse:admin:*":return e.jsx(V,{});case"urn:mas:admin":return e.jsx(z,{});default:return e.jsx(M,{scope:s})}},P=({scope:s})=>{const t=s.split(" ");return e.jsx(w,{className:"mt-1",children:t.map(c=>e.jsx(D,{scope:c},c))})},b=({children:s,className:t})=>e.jsx("li",{className:o("flex flex-col min-w-0",t),children:s}),E=({children:s,className:t})=>e.jsx(i,{size:"sm",weight:"regular",as:"h5",className:o("text-secondary",t),children:s}),F=({children:s,className:t})=>e.jsx(i,{size:"md",weight:"regular",className:o("text-ellipsis overflow-hidden",t),children:s}),Q=({children:s,className:t})=>e.jsx("ul",{className:o("flex flex-wrap gap-x-10 gap-y-6",t),children:s}),U=({children:s,className:t})=>e.jsx("section",{className:o("flex flex-col gap-6",t),children:s}),k=({children:s,className:t})=>e.jsxs(e.Fragment,{children:[e.jsx(f,{as:"h4",size:"sm",weight:"semibold",className:t,children:s}),e.jsx(g,{className:"-mt-4",kind:"section"})]});export{U as D,A as S,k as a,Q as b,b as c,E as d,F as e,y as f,C as g,P as h};
|
|
//# sourceMappingURL=SessionInfo-BtmlaGNW.js.map
|