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]=`68149786-c1db-4596-a278-5345ae8331f3`,e._sentryDebugIdIdentifier=`sentry-dbid-68149786-c1db-4596-a278-5345ae8331f3`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{$m as t,Ag as n,_r as r,hp as i,jg as a,ng as o,op as s}from"./entry.client-mpghtlrl.js";import{X as c}from"./xds-react-components-ihgca01z.js";import{t as l}from"./guideRouterEnvironmentHooks-h2xlfina.js";var u=n(),d=e(a(),1),f=o(),p=r(e=>{let n=(0,u.c)(10),{onSearchInputChange:r,query:i,autoFocus:a}=e,{t:o}=t(`GuidePeopleLandingPage`),s;n[0]===o?s=n[1]:(s=o(`Search or add friends`,{shortKey:`guide_people_search_bar`}),n[0]=o,n[1]=s);let l=s,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)(c,{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=!!i({from:s.dialog.guide.people.search.id,shouldThrow:!1}),r=s.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};