1import{r as f,j as e,I as v}from"./react-CiToEmDU.js";import{a as j,e as y,f as u,G as D,af as x}from"./index-BYjFgc3L.js";import{u as C,l as N,c as k,b,e as w,f as o}from"./UserMenu-B_jYy3Li.js";import{C as E,D as I}from"./DirectBits-aEDoNrNK.js";import{I as M}from"./InboxThread-D6lk49Sv.js";import"./utils-D0PJbLwx.js";import"./media-CVQTa9EZ.js";import"./analytics-BXHdaAVG.js";import"./ResourceNode-OBIHQGrc.js";import"./tiptap-nRqHaR__.js";import"./faPencil-i7LcEqDF.js";import"./index-VeBbZI0v.js";import"./faArrowRight-4u0hryvz.js";import"./ui-RDrFZQ6P.js";import"./faXmark-B7G55HuF.js";import"./faListCheck-DLKcNtcQ.js";import"./faScaleBalanced-D5aakmWf.js";import"./faClipboardCheck-S11E7M81.js";import"./faHouse-U1l3zx8N.js";import"./default-COrDvlHP.js";import"./TrackMixpanel-C5L6PEAt.js";import"./module-xE8hoDfr.js";import"./faCloudArrowUp-C66WGIf9.js";import"./faHouse-CoXf9sah.js";import"./useChannel-DYxj2c-Y.js";(function(){try{var s=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};s.SENTRY_RELEASE={id:"e15ff996bbe7105fef2b7e48186cc5ea2cf1c022"};var l=new s.Error().stack;l&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[l]="83885ba4-cacf-4d4e-988b-b88ee28f3ae4",s._sentryDebugIdIdentifier="sentry-dbid-83885ba4-cacf-4d4e-988b-b88ee28f3ae4")}catch{}})();const S=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:e.jsx("path",{d:"M6 6l12 12M18 6L6 18"})}),L=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M9 21H3v-6M21 9V3h-6M3 21L10 14M21 3l-7 7"})});function oe(){const s=j(),l=y(),c=u(i=>i.directPanel),n=u(i=>i.space),r=(c==null?void 0:c.slug)||null,a=!!r,{conversations:h}=C(),t=h.find(i=>i.slug===r);f.useEffect(()=>{a&&N()},[a]),f.useEffect(()=>{a&&s(D())},[a,s]);const d=()=>s(x(null)),g=()=>{const i=n!=null&&n.slug&&!(n!=null&&n.is_direct)?n.slug:null;s(x(null)),l(i?`/home/direct/${r}?return=${i}`:`/home/direct/${r}`)},p=t?k(t):"New message",m=t?t.isGroup?`${b(t)} · ${t.membersCount} people`:b(t):"";return e.jsx(v,{opened:a,onClose:d,position:"left",size:600,padding:0,withCloseButton:!1,overlayProps:{backgroundOpacity:.18,color:"#111827"},transitionProps:{transition:"slide-right"},styles:{content:{display:"flex",flexDirection:"column"},body:{flex:1,minHeight:0,display:"flex",flexDirection:"column",padding:0}},children:e.jsxs("div",{style:{...w,display:"flex",flexDirection:"column",height:"100%",minHeight:0},children:[e.jsxs("div",{className:o.panelTop,children:[e.jsx("button",{className:o.icobtn,onClick:d,title:"Close","aria-label":"Close",children:e.jsx(S,{})}),e.jsx("span",{className:o.panelLabel,children:"Messages"}),e.jsx("span",{style:{flex:1}}),e.jsx("button",{className:o.icobtn,onClick:g,title:"Open in full inbox","aria-label":"Open in full inbox",children:e.jsx(L,{})})]}),e.jsxs("div",{className:o.threadHead,children:[t?e.jsx(E,{conv:t,large:!0}):e.jsx(I,{name:p,size:44}),e.jsxs("div",{className:o.who,children:[e.jsx("div",{className:o.tName,children:p}),m?e.jsx("div",{className:o.tSub,children:m}):null]})]}),e.jsx("div",{className:o.panelThread,children:a&&e.jsx(M,{slug:r},r)})]})})}export{oe 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.