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]=`6ab29370-cde5-463c-b3b4-51316587c8be`,e._sentryDebugIdIdentifier=`sentry-dbid-6ab29370-cde5-463c-b3b4-51316587c8be`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{q as t}from"./xds-react-components-lks62tbl.js";import{Ag as n,Fg as r,Ig as i,Jp as a,dn as o,lh as s,zp as c}from"./entry.client-dr7r6s9a.js";import{t as l}from"./guideRouterEnvironmentHooks-gdtmgzra.js";var u=r(),d=e(i(),1),f=n(),p=o(e=>{let n=(0,u.c)(10),{onSearchInputChange:r,query:i,autoFocus:a}=e,{t:o}=s(`GuidePeopleLandingPage`),c;n[0]===o?c=n[1]:(c=o(`Search or add friends`,{shortKey:`guide_people_search_bar`}),n[0]=o,n[1]=c);let l=c,p=(0,d.useRef)(null),m,h;n[2]===a?(m=n[3],h=n[4]):(m=()=>{a&&p.current?.focus()},h=[a],n[2]=a,n[3]=m,n[4]=h),(0,d.useEffect)(m,h);let g;return n[5]!==r||n[6]!==l||n[7]!==i||n[8]!==a?(g=(0,f.jsx)(t,{onChange:r,placeholder:l,value:i,"aria-label":l,ref:p,"data-auto-focus":a}),n[5]=r,n[6]=l,n[7]=i,n[8]=a,n[9]=g):g=n[9],g},e=>{let t=l(),n=!!a({from:c.dialog.guide.people.search.id,shouldThrow:!1}),r=c.dialog.guide.people.search.fullPath;return{onSearchInputChange:e=>{t({to:r,search:{q:e},replace:n})},...e}}),m=e=>{let t=(0,u.c)(3),n=p.useComponent(),r;return t[0]!==n||t[1]!==e?(r=(0,f.jsx)(n,{...e}),t[0]=n,t[1]=e,t[2]=r):r=t[2],r};export{m as t};