try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`0171e42b-eb3b-479c-95ec-cb020b463847`,e._sentryDebugIdIdentifier=`sentry-dbid-0171e42b-eb3b-479c-95ec-cb020b463847`)}catch{}import"./rolldown-runtime-eb2nym32.js";import{_ as e,v as t,x as n}from"./xds-react-components-lks62tbl.js";import{Ag as r,Dg as i,Fg as a,Wn as o,dn as s,mr as c,sh as l,zp as u}from"./entry.client-dr7r6s9a.js";import{Q as d,Z as f}from"./xds-icons-d7khcnpi.js";import{t as p}from"./guideRouterEnvironmentHooks-gdtmgzra.js";import{t as m}from"./useGuideStrings-d2n0srzf.js";import{t as h}from"./useChatStrings-ddn3ault.js";import{n as g,t as _}from"./GuideL1Header-ntkqljmx.js";import{t as v}from"./GuidePageLayout-imh16gdu.js";import{t as y}from"./ConversationsList-og9inibv.js";var b=a(),x=r(),S=s(r=>{let i=(0,b.c)(26),{className:a,unreadRequestCount:s,onNewChat:c,onOpenChatRequests:l}=r,{locNewChat:u,locChatRequests:p}=h(),m;i[0]===u?m=i[1]:(m=u(),i[0]=u,i[1]=m);let g;i[2]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,x.jsx)(f,{}),i[2]=g):g=i[2];let _;i[3]!==m||i[4]!==c?(_=(0,x.jsx)(`div`,{className:`flex-grow`,children:(0,x.jsx)(e,{as:`button`,label1:m,leadingIcon:g,onPress:c})}),i[3]=m,i[4]=c,i[5]=_):_=i[5];let v;i[6]===p?v=i[7]:(v=p(),i[6]=p,i[7]=v);let y;i[8]===p?y=i[9]:(y=p(),i[8]=p,i[9]=y);let S;i[10]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,x.jsx)(`div`,{className:`m-[4px]`,children:(0,x.jsx)(o,{icon:(0,x.jsx)(d,{}),size:`subtitle2`})}),i[10]=S):S=i[10];let C;i[11]===s?C=i[12]:(C=s>0&&(0,x.jsx)(`div`,{className:`absolute end-0 top-0`,children:(0,x.jsx)(t,{kind:`brand`})}),i[11]=s,i[12]=C);let w;i[13]===C?w=i[14]:(w=(0,x.jsx)(n.LeadingIcon,{children:(0,x.jsx)(`div`,{className:`flex w-full flex-col items-center`,children:(0,x.jsxs)(`div`,{className:`relative m-[-4px]`,children:[S,C]})})}),i[13]=C,i[14]=w);let T;i[15]!==v||i[16]!==y||i[17]!==l||i[18]!==w?(T=(0,x.jsx)(`div`,{children:(0,x.jsx)(n,{className:`min-w-items-notification-split-action-button-width !gap-0`,as:`button`,"aria-label":v,tooltipContent:y,onPress:l,children:w})}),i[15]=v,i[16]=y,i[17]=l,i[18]=w,i[19]=T):T=i[19];let E;i[20]!==_||i[21]!==T?(E=(0,x.jsxs)(`div`,{className:`gap-items-social-related-spacing-horizontal-alignment-graphic-&-text flex flex-row`,children:[_,T]}),i[20]=_,i[21]=T,i[22]=E):E=i[22];let D;return i[23]!==a||i[24]!==E?(D=(0,x.jsx)(`section`,{className:a,children:E}),i[23]=a,i[24]=E,i[25]=D):D=i[25],D},({...e})=>{let{messagingInbox:t}=l(),{data:n}=i(t.queries.messageRequestCount.getActiveUserQuery().getOptions()),r=p();return{unreadRequestCount:n?.unread??0,onNewChat:()=>{r({to:u.dialog.guide.chat.inviteToChat.fullPath,params:{groupId:`new`}})},onOpenChatRequests:()=>{r({to:u.dialog.guide.chat.requests.fullPath})},...e}}),C=c(({...e})=>(0,x.jsx)(S.useComponent(),{...e}),`ChatLandingHeader`),w=c(()=>{let{locChat:e}=m();return(0,x.jsx)(v,{id:`guide-chat-landing-page`,header:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(`div`,{className:`flex items-center gap-internal-gap-tight`,children:[(0,x.jsx)(g,{}),(0,x.jsx)(_,{title:e(),className:`flex-1`})]}),(0,x.jsx)(C,{})]}),contentClassName:`gap-layout-vertical-related-content-in-a-section-tight`,children:(0,x.jsx)(y,{inboxType:`primary`})})},`ChatLandingPage`);export{w as ChatLandingPage,w as default};