import{o as d,b as n,d as a,x as l,k as p,q as h}from"./app-QjDgb7aF.js";async function m(){const{canceled:c,result:e}=await d({title:n.ts.usernameOrUserId});if(c)return;const t=s=>{p(`/user-info/${s.id}`)},i=a("users/show",l.parse(e)),u=a("users/show",{userId:e});let o=!1;const r=()=>{o?h({type:"error",text:n.ts.noSuchUser}):o=!0};i.then(t).catch(s=>{s.code==="NO_SUCH_USER"&&r()}),u.then(t).catch(s=>{r()})}export{m as l};
//# sourceMappingURL=lookup-user-BIpicj7Y.js.map
