import{b4 as l,aj as m,r as f}from"./index-DlNZgIG9.js";import{u as c}from"./useSalesPersonScope-CNYMl7b2.js";function d(e){return[e.firstName,e.lastName].filter(Boolean).join(" ").trim()||e.userName||""}function S(){const{data:e}=l(),{data:r}=m({roleName:"SalesPerson"}),{myId:s,myName:n}=c();return f.useMemo(()=>{const t=new Map,o=u=>(u||[]).forEach(a=>{const i=d(a);a.id!=null&&i&&t.set(String(a.id),i)});return o(e==null?void 0:e.userList),o(r==null?void 0:r.userList),s!=null&&n&&t.set(String(s),n),t},[e,r,s,n])}function y(e,r,s){const n=r!=null?String(r):s!=null?String(s):void 0;return n==null?s??void 0:e.get(n)??s??n}export{y as r,S as u};
